I'm could use some help. Here's what I am trying to do, I added the following code (without //comments) to the CTGY page .
//read a custom category variable named step_1 and assign to a global variable
<mvt:item name="customfields" param="Read_Product_Code(l.settings:category:code, 'step_1', g.step1)" />
//I assigned some text (ie. Test|This is a test) to the step_1 variable at the category level via the corresponding textarea
//if the global variable has content
<mvt:if expr="g.step1">
//split using token & assign title|body to global variables
<mvt:assign name="g.step1_title" value="gettoken( g.step1, '|', 1 )" />
<mvt:assign name="g.step1_body" value="gettoken( g.step1, '|', 2)" />
</mvt:if>
//print to page
&mvt:global:step1_title;
&mvt:global:step1_body;
I get nothing.on the assigned category page
Thanks.
//read a custom category variable named step_1 and assign to a global variable
<mvt:item name="customfields" param="Read_Product_Code(l.settings:category:code, 'step_1', g.step1)" />
//I assigned some text (ie. Test|This is a test) to the step_1 variable at the category level via the corresponding textarea
//if the global variable has content
<mvt:if expr="g.step1">
//split using token & assign title|body to global variables
<mvt:assign name="g.step1_title" value="gettoken( g.step1, '|', 1 )" />
<mvt:assign name="g.step1_body" value="gettoken( g.step1, '|', 2)" />
</mvt:if>
//print to page
&mvt:global:step1_title;
&mvt:global:step1_body;
I get nothing.on the assigned category page
Thanks.
Comment