Page 1 of 1

CGContent Utilities and GCB Selector

Posted: Mon Sep 14, 2015 7:34 pm
by cpansewicz
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.

Re: CGContent Utilities and GCB Selector

Posted: Mon Sep 14, 2015 11:44 pm
by applejack
If the GCB is passed via block='Contact-Box' try using double quotes block="Contact-Box"

Re: CGContent Utilities and GCB Selector

Posted: Tue Sep 15, 2015 2:34 am
by cpansewicz
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.