Page 1 of 1

How to admin edit a sidebar content [Solved]

Posted: Mon Apr 14, 2008 7:32 am
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

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

Posted: Wed Apr 16, 2008 4:25 pm
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 :)