Hi
I was wondering, if there is any way to set an Actinic Variable from the Design Layout using a PHP variable?
ie
<actinic:block php="true">$productcount = 0;</actinic:block>
<actinic:variable name="ProductList" />
<!-- in ProductList layout add <actinic:block php="true">$productcount++;</actinic:block> -->
<actinic:variable name="SectionProductCount" = $productcount />
But as far as I can see Actinic variables are Constants, when Generating HTML. You can only input a Actinic variable into HTML layout.
If there is a way to change them, when genrating Layout code, please let me know.
I am thinking of making section automatically hide, when no products avaliable in that section/sub-sections. But I need a way to change the Section check box "Hide on Web Site", without Importing a File. Or being able to change a Actinic User defined variable would be fine.
Regards
Sean
I was wondering, if there is any way to set an Actinic Variable from the Design Layout using a PHP variable?
ie
<actinic:block php="true">$productcount = 0;</actinic:block>
<actinic:variable name="ProductList" />
<!-- in ProductList layout add <actinic:block php="true">$productcount++;</actinic:block> -->
<actinic:variable name="SectionProductCount" = $productcount />
But as far as I can see Actinic variables are Constants, when Generating HTML. You can only input a Actinic variable into HTML layout.
If there is a way to change them, when genrating Layout code, please let me know.
I am thinking of making section automatically hide, when no products avaliable in that section/sub-sections. But I need a way to change the Section check box "Hide on Web Site", without Importing a File. Or being able to change a Actinic User defined variable would be fine.
Regards
Sean
Comment