Jump to:

23361 Posts in 18124 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Place for global content?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1582 Views
  • Rawbit
    Avatar
    Community Member
    52 Posts

    Place for global content? Link to this post

    I'm looking for a better way to allow the user to manage global content (for example a list of links at the footer of a website template that are the same throughout the website).

    I'm still using workarounds and/or hacks to support this. The most effective approach I've found is to create a special page type, let's say 'FooterLinks', remove all of the tabs inside FooterLinks.php, and only allow them a DataObjectManager to control this list of links. I also hide it from menu and searches as well.

    I've tried ModelAdmin but this is really lacking in object control (Drag n drop sorting etc) and has poor list-view. It just doesn't seem like a good fit.

    Anyone have any suggestions on this?

    The main problem I see with the approach i'm using is that it well allow you to visit the page, i.e. www.example.com/footerlinks/ and it's also visible in www.example.com/sitemap.xml

    Please advise!

  • Ranie
    Avatar
    4 Posts

    Re: Place for global content? Link to this post

    Ohh no reply This is exactly my problem... And has stopped me before using SS. But now I'm going to use it and need to find a way to

  • Willr
    Avatar
    Forum Moderator
    5483 Posts

    Re: Place for global content? Link to this post

    @Ranie you can use the SiteConfig panel to add areas for global information - http://doc.silverstripe.org/sapphire/en/reference/siteconfig

    Not sure how well it supports DataObjectManager etc but for text information it's good.

  • Ranie
    Avatar
    4 Posts

    Re: Place for global content? Link to this post

    @Willr thanks man! This helps me with few of my problems. Going to check this out a little better. I see I have to go through the docs. Alot of stuff there now

    1582 Views
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.