Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

Multiple Sidebar and Footer bar


Reply

4 Posts   1008 Views

Avatar
hunman

27 September 2010 at 1:15am Community Member, 18 Posts

Hi,

I need two sidebars, one on left and other on right in my template , also a footer bar in the bottom. I want to populate content in these sidebars and footer from the back-end only but not manually.

Which is the best way to achieve this functionality ??? Please Help

Regards,

Kumar

Avatar
3dgoo

27 September 2010 at 2:03pm Community Member, 133 Posts

The content in the sidebars and the footer, do you want them to be the same for every page?

Avatar
hunman

27 September 2010 at 4:07pm Community Member, 18 Posts

No it will change depending on the page we are browsing.

Avatar
3dgoo

28 September 2010 at 1:16am Community Member, 133 Posts

You could create three [url=http://api.silverstripe.org/2.4/sapphire/model/HTMLText.html]HTMLText[/url] fields in your Page class: LeftColumn, RightColumn, FooterText

You could then enter the text into each page for each of those items and show them on the front end how you like.

You could be tricky, and check if the fields are empty, and in that case use the parent field.