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.

General Questions /

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

Sitewide content (snippets)


Reply


2 Posts   919 Views

Avatar
Jono

Community Member, 1 Post

5 September 2009 at 2:34am

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

Avatar
zenmonkey

Community Member, 532 Posts

5 September 2009 at 11:13am

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.