Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » common content on multiple pages (managed through CMS)

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

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

Page: 1
Go to End
Author Topic: 1299 Views
  • toddm
    Community Member
    15 Posts

    common content on multiple pages (managed through CMS) Link to this post


    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?

  • Willr
    Forum Moderator
    5508 Posts

    Re: common content on multiple pages (managed through CMS) Link to this post

    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 %>

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.