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

Managing global elements in the tree that are not pages


Reply


2 Posts   432 Views

Avatar
bostonmark

Community Member, 10 Posts

12 September 2011 at 8:12am

I've worked on other CMS's before and this is my first SS project. Is there a notion or creating PHP classes/models that map to fields in the back-end that don't necessarily map to a page? For example, creating global elements that are more of settings? For example, can I create a node in the tree called Main Nav and sub-nodes that solely represent nav links? These won't necessarily be pages though, but I would want to code my global template to call on these when making the top-level navigation. Does that make sense?

Also, FYI, I'm using SS 2.3.11, not the latest, because I need to use the Event Calendar module which is for that version.

Avatar
swaiba

Forum Moderator, 1799 Posts

12 September 2011 at 8:54pm

Edited: 12/09/2011 8:55pm

Probably the Siteconfig...

http://www.ssbits.com/tutorials/2010/2-4-working-with-siteconfig/

But maybe ModelAdmin...

http://www.silverstripe.org/making-a-crm-with-modeladmin-in-silverstripe-230/

(oh and I've limited experiences with the event calendar - but it seems to work fine with 2.4.5)