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   1014 Views

Avatar
hunman

Community Member, 18 Posts

27 September 2010 at 1:15am

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

Community Member, 133 Posts

27 September 2010 at 2:03pm

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

Avatar
hunman

Community Member, 18 Posts

27 September 2010 at 4:07pm

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

Avatar
3dgoo

Community Member, 133 Posts

28 September 2010 at 1:16am

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.