Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I installed a plugin. The only option to use it is to place this code in a CMS page: {{block type="ve_easyslide/list" template="ve/easyslide.phtml"}}.

Firstly, what are these blocks of code called and what does it do?

Secondly, how could I use this in a static block? When I try and put it in a static block now it just displays the code on my site.

share|improve this question
add comment

1 Answer

It's called magic variables.

{{block type="catalog/product_list" template="catalog/product/list.phtml"}}

is equivalent to layout's XML:

block type="catalog/product_list" template="catalog/product/list.phtml" /

that you can find in catalog.xml in example. Type attribute points to class - in this example it's:

Mage_Catalog_Block_Product_List and template, well, points to template file :)

You can use the same code in static block but be sure to insert the code while WYSIWYG editor is off.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.