How to place content into a sidebar
Posted: Mon Jun 09, 2008 9:31 am
OK, first post be kind. I am trying my first site with CMSMS - having a reasonable amount of experience with the MODx CMS - and have run into a newbie problem. I have tried looking at the documentation but could easily have missed something so if there is a TFM I would appreciate a pointer so I could RTFM and be enlightened in the "CMSMS way".
I am trying to port a 2 column design to CMSMS, content defined in the Page menu gets inserted via a {content} tag and all is OK. However I am baffled by the sidebar content. The templates I have looked at seem to have the sidebar in the main template so that all pages using that template get the same sidebar content - and to change the sidebar text one edits the template.
In my case the home page (it is for a management trainer) might have testimonials and upcoming events on the home page sidebar and course-specific supplementary details on other page sidebars (e.g. prerequisites). Now I could imagine having a set of different templates, one for each type of sidebar but what about pages sharing the same type of sidebar but with different content? My reading so far seems to imply there is one template per page and that users edit the page to change the content and edit the template to change the sidebar which seems wrong.
What I am imagining is some kind of page-specific {sidebar} tag which I can edit to populate the side bar for a given page thus having the ability to change the look of a page by swapping templates but retaining the main and sidebar content as-is.
I think my question comes down to this: How do I define sidebar content per page without entering the sidebar content in the template and thus having one template per page.
Ed
I am trying to port a 2 column design to CMSMS, content defined in the Page menu gets inserted via a {content} tag and all is OK. However I am baffled by the sidebar content. The templates I have looked at seem to have the sidebar in the main template so that all pages using that template get the same sidebar content - and to change the sidebar text one edits the template.
In my case the home page (it is for a management trainer) might have testimonials and upcoming events on the home page sidebar and course-specific supplementary details on other page sidebars (e.g. prerequisites). Now I could imagine having a set of different templates, one for each type of sidebar but what about pages sharing the same type of sidebar but with different content? My reading so far seems to imply there is one template per page and that users edit the page to change the content and edit the template to change the sidebar which seems wrong.
What I am imagining is some kind of page-specific {sidebar} tag which I can edit to populate the side bar for a given page thus having the ability to change the look of a page by swapping templates but retaining the main and sidebar content as-is.
I think my question comes down to this: How do I define sidebar content per page without entering the sidebar content in the template and thus having one template per page.
Ed