Jump to:

23379 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Sitewide content (snippets)

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: 821 Views
  • Jono
    Avatar
    Community Member
    1 Post

    Sitewide content (snippets) Link to this post

    Hello

    I have just started using SilverStripe, I really like it but their is one thing I'm really struggling to get my head around. The site I'm building has 3 promotional panels at the bottom of the page. The client would like to be able to add and remove promotional panels from a master list and then on each page of content select which 3 promotional panels display on that particular page.

    I have figured out how on page contents to add three drop downs to choose the promotional panels, what i can't figure out is what is the best approach to store these and maintain them? Do you create a page e.g. 'Promotions', set it not to show in nav and then add sub pages for each of the promotions? Do you use the ModelAdmin? Is their something else I can use?

    Any pointers would be really appreciated.

    Jono

  • zenmonkey
    Avatar
    Community Member
    527 Posts

    Re: Sitewide content (snippets) Link to this post

    Well you could use the DataObjectManager.

    Add a DataObjectManager (DOM for short) to your Page class that would contain the Promos. Then have your drop downs pull from that DataObject. This would save you creating the promos in the tree.

    821 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.