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.
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
The content in the sidebars and the footer, do you want them to be the same for every page?
No it will change depending on the page we are browsing.
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.