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

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

If you use tinyMCE instead of MicroTiny, you could use the "Custom dropdown:" it has to do this...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

howbout:

Some Label 1|sidebar1
Some Label 2|sidebar2
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

Code: Select all

"globalcontent: sidebar1"
There's an errant space in there.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “The Lounge”