• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Ability to toggle Global Content Blocks on/off
PostPosted: Mon Apr 28, 2008 4:30 pm 
Offline
Power Poster
Power Poster

Joined: Mon Jun 12, 2006 9:02 pm
Posts: 1900
I'm looking for the functionality to be able to use a checkbox or radio button to toggle the display of a GCB.  For example, I could set up a GCB with an announcement, such as "Sorry, our store is closed today due to a family emergency".  I then put this GCB on my homepage.  Somewhere in the admin would be a "GCB Display" page, which would list each GCB title along with a pair of radio buttons.  On button for "Display This GCB: YES" and the other for NO.  This would let any authorized user quickly and easily control which GCBs are displayed, without having to go into the template or page and add/edit/remove GCB tags.

Is there anything in the current CMSMS that would provide similar functionality?  What about anything coming in 2.0?

Thanks


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ability to toggle Global Content Blocks on/off
PostPosted: Mon Apr 28, 2008 5:44 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8167
Location: Fernie British Columbia, Canada
Just comment them out

put {* at the front and *} at the end

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ability to toggle Global Content Blocks on/off
PostPosted: Mon Apr 28, 2008 8:13 pm 
Offline
Power Poster
Power Poster

Joined: Mon Jun 12, 2006 9:02 pm
Posts: 1900
right, but that means someone has to open each GCB...  I'm looking for something simpler.  I have clients who don't understand "commenting".  I do, but they don't.

In other pages I've hard-coded, I've provided this functionality via a simple checkbox, and I'd like to figure out a way to do it within the CMSMS framework...

I would think this could be done pretty simply as a module, but unfortunately I'm clueless when it comes to modules, and more unfortunately don't have the time to learn right now...

thanks


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ability to toggle Global Content Blocks on/off
PostPosted: Mon Apr 28, 2008 8:24 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8167
Location: Fernie British Columbia, Canada
unfortunately, adding the ability to enable/disable GCB's or UDT's would require a database schema change, and significant code changes.

It's probably not feasible at this time.

Maybe use the news module to display a 'motd' category and a limit of 1 article.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ability to toggle Global Content Blocks on/off
PostPosted: Mon Apr 28, 2008 8:28 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Feb 02, 2007 4:31 pm
Posts: 2385
Location: Comox Valley, BC
As an interim solution, you could have two identical templates/pages, except for the inclusion of the GCB in one of them. Then the user just has to activate the appropriate one, instead of editing the template/page.

Nullig


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ability to toggle Global Content Blocks on/off
PostPosted: Mon Apr 28, 2008 8:44 pm 
Offline
Power Poster
Power Poster

Joined: Mon Jun 12, 2006 9:02 pm
Posts: 1900
that's interesting; hadn't thought of that...

thanks Nullig and Calguy!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Ability to toggle Global Content Blocks on/off
PostPosted: Mon Apr 11, 2011 10:06 am 
Offline
Power Poster
Power Poster

Joined: Mon Mar 14, 2011 1:16 am
Posts: 265
Location: Brisbane, Australia
I realise this is old, but another solution would be to create a new GCB called something like 'show-announcement' and insert this into the page template. If any value is present, show the other GBS that you want to display on the site, such as 'major-announcement'. And if 'show-announcement' is empty, don't show the other GCBs. That way the user need only edit one GCB in order to show the others.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting