Mobile app version of vmapp.org
Login or Join
Gonzalez347

: 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"}}.

@Gonzalez347

Posted in: #Magento #Static

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez347

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme