How to admin edit a sidebar content [Solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Mury
Forum Members
Forum Members
Posts: 56
Joined: Tue Oct 09, 2007 10:54 pm

How to admin edit a sidebar content [Solved]

Post by Mury »

Hi Guys,
Love this system - now onto building another CMSMS site :)

OK I  have a question.  I want to be able to admin edit a sidebar and notice that in one default template, when you edit a page you actually get the Content AND the Sidebar on the edit screen.
How do I do that - ie - switch on the edit a sidebar at the same time.
The one I mean is on the default CSS Menu Top+ 2 Columns. - open a page with that and you get the sidebar to edit as well.
Any Hints :)
Thanks
Last edited by Mury on Wed Apr 16, 2008 4:26 pm, edited 1 time in total.
Mury
Forum Members
Forum Members
Posts: 56
Joined: Tue Oct 09, 2007 10:54 pm

Re: How to admin edit a sidebar content [Solved]

Post by Mury »

OK - it took me a while - but I figured it out.
To have your sidebar editable in your Admin area at the same time as your page content - add a "content Block" to your Template.  ie {content block='sidebar'}  as in below.  This then displays an edit box - yes it is in the documentation - you just gotta wade through it. Sample code below.  Just check your stylesheet to make sure all fits etc.


     
     
     
          News
          {news number='2' detailpage='news' dateformat="%b %d, %Y"}
         
          {content block='sidebar'}
     
     

Regards to all :)
Post Reply

Return to “CMSMS Core”