I'm pretty new to Silverstripe. I've been playing around with the default templates and would like some advise on the best way to handle two column content i.e. multiple pages with main content and then varyiong content in a smaller right column or side bar. I can see how the default Sidebar strcuture works well for showing a menu system, but what about when you want to include additional content further down that might be unique to each page. Anyone offer any advise?
Note: My current thinking is that where this additional content is fairly static you just define additional Page layouts that include the static content you want, or alternative you actually add a secondary Content area to the database, so that via Admin area you can both add main content and content for the sidebar area?
I think that creating a relationship would is way more complex than is needed - the simplest thing to do would be to just create an additional field the $db static on your Page class, then add an extra field in your getCMSFields() method:
Sorry for brnging up an old post, but i prefer to read and comment on existing thread rather than start new ones...
What is a dataobject and how do i create one?
If im undertanding Nivanka correctly, i can create a data object and assign it ti whatever pages i want?
So if i make a change to a dataobject that change is applied to all the pages that use this dataobject - much like a global php include?