Setting variables for Global content blocks in module
Posted: Mon Dec 21, 2009 7:25 pm
Here's another question that I can't seem to find an answer to...
I have a route setup and I need my action to grab a parameter and then put the value of that param into a smarty variable that a global content block can examine and modify its display accordingly. I thought this would be really straight-forward as I've done this with templates/action setting title and meta description tags. However, the GCB doesn't seem to be aware of the variable I'm setting in my action via $this->smarty->assign('foo', 'bar'). I even tried {assign var='foo' value='bar'} in my template which includes the GCB and this doesn't work either. How can I go about doing this? Seems that there's gotta be a way.
Cheers,
Tripp
I have a route setup and I need my action to grab a parameter and then put the value of that param into a smarty variable that a global content block can examine and modify its display accordingly. I thought this would be really straight-forward as I've done this with templates/action setting title and meta description tags. However, the GCB doesn't seem to be aware of the variable I'm setting in my action via $this->smarty->assign('foo', 'bar'). I even tried {assign var='foo' value='bar'} in my template which includes the GCB and this doesn't work either. How can I go about doing this? Seems that there's gotta be a way.
Cheers,
Tripp