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.

Archive /

Our old forums are still available as a read-only archive.

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

common content on multiple pages (managed through CMS)


Go to End


2 Posts   1578 Views

Avatar
toddm

Community Member, 15 Posts

13 August 2008 at 7:41am

Hi,

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.

Thoughts? Suggestions?

Avatar
Willr

Forum Moderator, 5523 Posts

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) %>
$CustomField
<% end_control %>