I'm looking at replacing these venerable and very useful modules. It seems like there is no equivalent functionality in Miva currently - is that correct (if so please consider adding it to the wishlist!)?
In any case I am thinking of a possible solution but want to run it by you guys before I try it (or contact someone to do it).
If it has to be handled via pages I am thinking I would create a 'holding' page for PROD and CTGY, then use to tool kit and a custom field (i.e. TEMPLATEID) to determine which template to render
Example PROD page and 'sub pages' which would hold template code, named so they sort neatly
PROD-1-MAIN //main
PROD-2-FLOOR-PLANKS //template
PROD-2-FLOOR-TILES //template
PROD-2-PAINT-SPECIALS //template
PROD-3-DEFAULT //default template if none specified
then in PROD-1-MAIN something like the following (untested code just to illustrate my thinking).
I know than a programmer could probably create a nice big single page of code to render every option but too complex for me to sort out. I am thinking something like this would be clearer and allow me to easily make small updates to the individual 'templates' without having to call a programmer for every tiny edit.
In any case I am thinking of a possible solution but want to run it by you guys before I try it (or contact someone to do it).
If it has to be handled via pages I am thinking I would create a 'holding' page for PROD and CTGY, then use to tool kit and a custom field (i.e. TEMPLATEID) to determine which template to render
Example PROD page and 'sub pages' which would hold template code, named so they sort neatly
PROD-1-MAIN //main
PROD-2-FLOOR-PLANKS //template
PROD-2-FLOOR-TILES //template
PROD-2-PAINT-SPECIALS //template
PROD-3-DEFAULT //default template if none specified
then in PROD-1-MAIN something like the following (untested code just to illustrate my thinking).
Code:
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:TEMPLATEID"> <mvt:if expr="l.settings:product:customfield_values:customfields:TEMPLATEID" EQ 1> <mvt:item name="toolkit" param="render|PROD-2-FLOOR-PLANKS" /> <mvt:elseif expr="l.settings:product:customfield_values:customfields:TEMPLATEID" EQ 2> <mvt:item name="toolkit" param="render|PROD-2-FLOOR-TILES" /> <mvt:elseif expr="l.settings:product:customfield_values:customfields:TEMPLATEID" EQ 3> <mvt:item name="toolkit" param="render|PROD-2-PAINT-SPECIALS" /> </mvt:if> // otherwise if no template was specified render default PROD page code <mvt:item name="toolkit" param="render|PROD-3-DEFAULT" /> </mvt:if>
Comment