Page 1 of 1

Re: Adding global blocks by ticking a checkbox or similar...

Posted: Mon Jun 18, 2012 8:03 pm
by Dr.CSS
If you use tinyMCE instead of MicroTiny, you could use the "Custom dropdown:" it has to do this...

Re: Adding global blocks by ticking a checkbox or similar...

Posted: Mon Jun 18, 2012 8:45 pm
by calguy1000
I would use CGContentUtils ..it allows you to build content blocks of different types, including dropdowns. You could create a dropdown content block containing the options 'Sidebar1, Sidebar2, and Sidebar3'}

Then assign the output of that content block to a smarty variable... and display the content block representing the value of the variable.

i.e: (something like:)
{content_module module=CGContentUtils block='foo' name='dropdown' assign='foo'}
{global_content name=$foo}

Re: Adding global blocks by ticking a checkbox or similar...

Posted: Mon Jun 18, 2012 9:48 pm
by calguy1000
howbout:

Some Label 1|sidebar1
Some Label 2|sidebar2

Re: Adding global blocks by ticking a checkbox or similar...

Posted: Tue Jun 19, 2012 2:07 pm
by calguy1000

Code: Select all

"globalcontent: sidebar1"
There's an errant space in there.