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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Managing global elements in the tree that are not pages


Go to End


2 Posts   741 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, 1899 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)