[Solved] How to Make Global Content Blocks Dynamic?
Posted: Tue Feb 05, 2008 1:05 am
Hi
I am trying to create the reference to global content blocks on the fly using the menu manger to get the parent name of the page i.e.
{global_content name="{menu template='parent' start_level='2' number_of_levels='1'}"}
but it give a Smarty error.
If anyone knows how to generate global content block references dynamically please let me know as this would be very useful for cutting down on the number of templates required.
If anyone knows how to pass Smarty values to Javascript variables in a template then I might be able to use that.
Thanks in advance.
I am trying to create the reference to global content blocks on the fly using the menu manger to get the parent name of the page i.e.
{global_content name="{menu template='parent' start_level='2' number_of_levels='1'}"}
but it give a Smarty error.
If anyone knows how to generate global content block references dynamically please let me know as this would be very useful for cutting down on the number of templates required.
If anyone knows how to pass Smarty values to Javascript variables in a template then I might be able to use that.
Thanks in advance.