17488 Posts in 4473 Topics by 1978 members
|Go to End|
13 August 2008 at 7:41am
This feels like a newbie question, but I can't find the answer...
For example, I have content xyz that I would like to include on two different pages. I'd like to manage xyz through Silverstripe (not in a .ss file) and have the ability to use xyz on the two different pages. Know what I mean? Example: I have paragraph of content that I'd like to edit via WYSIWYG editor. This paragraph should be included on many pages.
It seems as if Silverstripe doesn't have this capability? The only option I have is to create a Page with the common xyz content hardcoded and then extend that page in subclasses.
Hopefully, I'm making sense.
13 August 2008 at 1:49pm
SilverStripe currently does not have a good setup for global options such as a paragraph. You could use dio5's new site setting module -http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/110554?start=8#post116547 and give that a roll. Or what we normally do is setup a HomePage.php which has fields for static content eg. Then in the Page template we control the fields on the Homepage
<% control Page(home) %>
<% end_control %>
|Go to Top|