Magento Variable Category Template -


i have numerous categories within magento store. each of these categories can described 'type a' or 'type b'. want each type of category displayed using different template file. templates dynamic - loading in content other sources given category key being displayed.

to end, when creating category, administrator should able set whether category should rendered type or b. best way of going this?

the simplest solution have come across far create 2 static blocks 'type block' , 'type b block' , dynamically load template file using following described on this blog post:

{{block type="core/template" name="some_unique_name" template="myfolder/my_dynamic_php_content.phtml"}}

this static block can assigned category , perform describe.

although may work, i'm little uncomfortable surely making static blocks dynamic not intended for. i'd prefer make sure develop initial template in 'proper' way , identifying how best appreciated.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -