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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multiple Sidebar and Footer bar


Go to End


4 Posts   1642 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, 135 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, 135 Posts

28 September 2010 at 1:16am

You could create three HTMLText 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.