: Magento - adding BLOCKTYPE to static block 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"}}.
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.
More posts by @Gonzalez347
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.