I am posting yet another smarty related question.
In CGContent Utilities, I created a GCB Selector field to choose content from some Global Content Blocks that I created.
I added that to my template and assigned a variable to it (see below).
{content_module module='CGContentUtils' block='Contact-Box' name='Contact-Box' label='Contact-Box' assign='contactbox'}
{$contactbox}
What this renders though is the actual name of the Global Contact Box, and not the contents of the Global Content Box. What am I doing wrong?
Thank you.
CGContent Utilities and GCB Selector
-
- Forum Members
- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: CGContent Utilities and GCB Selector
If the GCB is passed via block='Contact-Box' try using double quotes block="Contact-Box"
-
- Forum Members
- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: CGContent Utilities and GCB Selector
Duh, I know now what I am supposed to do with this. It returns the name of a GCB, so I can put that into my template.
The double quotes weren't the issue, but thank you for responding.
The double quotes weren't the issue, but thank you for responding.