• 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: Fixed Rotating Sidebars
PostPosted: Sun Jul 01, 2012 2:32 pm 
Offline
New Member

Joined: Sun Jul 01, 2012 2:27 pm
Posts: 4
Hello,
We had our website redesigned using the CMS as the backbone, but now my boss has asked me to update a few things...I have accomplished all of his requests but one:

We have rotating testimonials on the homepage and various service pages that randomly rotate, however on the Speaking tab (http://www.millington.ca/index.php?page=speaking) we want the testimonials on the right to be fixed between two or three that are focused on speaking (and not on the other services).
I have tried playing around (I have full admin access) but cannot seem to find anything where I can select what side bar items to be shown.

Any help would be appreciated.

Thanks


Top
 Profile  
 
 Post subject: Re: Fixed Rotating Sidebars
PostPosted: Sun Jul 01, 2012 5:23 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11812
Location: Arizona
You would have to tell us how you get content into that side bar and a lot of other info for us to figure out how to help you, what module is it, how is it called(in page or template), etc. etc....

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Fixed Rotating Sidebars
PostPosted: Mon Jul 02, 2012 11:07 pm 
Offline
New Member

Joined: Sun Jul 01, 2012 2:27 pm
Posts: 4
Thank you very much.
Where I go to add new testimonials (that are then randomly chosen) is under Content -> Global Content Blocks -> Add new
I looked under the "Options" tab under a Page that I was editing to see if I could find any reference back to the Global Content in the code, but I could not.
The "Tags" associated with each testimonial is as such :{global_content name='testimonial Chris Bart'}
The template is default and says 1.10.3 "Hyacinthe" at the bottom.

Anyway, hopefully this helps...I admit, I am slowly learning this.

Thanks in advance


Top
 Profile  
 
 Post subject: Re: Fixed Rotating Sidebars
PostPosted: Tue Jul 03, 2012 2:19 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 70
Location: Victoria, BC
If the global content blocks that you wish to display follow a naming convention, you can use a regex to limit which ones are randomly displayed:

{random_gcb delimiter='' block_regex="^foo"}

The above example would randomly show any gcb beginning with "foo" such as foobar, foofighters, foodforthought, but would skip the rest.


Top
 Profile  
 
 Post subject: Re: Fixed Rotating Sidebars
PostPosted: Tue Jul 03, 2012 4:16 pm 
Offline
New Member

Joined: Sun Jul 01, 2012 2:27 pm
Posts: 4
Thank you DIGI3.
Where would I post the regex code? on the page I want to restrict the sidebars?
Thanks again


Top
 Profile  
 
 Post subject: Re: Fixed Rotating Sidebars
PostPosted: Wed Jul 04, 2012 12:32 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 70
Location: Victoria, BC
Typically tags would go in your template. You will probably want some {if}{else} tags to determine which pages get what sidebars. The CGSimpleSmarty module will also make this process easier. Here's an example from one of my templates:

<div id="sidebar">{if $cgsimple->get_root_alias() == 'products'}{random_gcb delimiter='' block_regex="^products_"}{else}{random_gcb delimiter='' block_regex="^services_"}{/if}</div>

So any page under the products page in site hierarchy will display a random gcb starting with products_, any other page in the site will show one starting with services_.


Top
 Profile  
 
 Post subject: Re: Fixed Rotating Sidebars
PostPosted: Wed Jul 04, 2012 1:06 am 
Offline
New Member

Joined: Sun Jul 01, 2012 2:27 pm
Posts: 4
Great thanks.
I will check out that module and proceed as suggested.
Thanks again for your help.


Top
 Profile  
 
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:  
A2 Hosting