Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » How do I go about adding groups to the Site Tree to group specific page types?

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

Page: 1
Go to End
Author Topic: 869 Views
  • 1nsane
    Avatar
    Community Member
    14 Posts

    How do I go about adding groups to the Site Tree to group specific page types? Link to this post

    I would like to customize the site tree - I want to be able to group specific page types, without affecting the menu hierarchy. I thought about adding a page holder, but that page holder would show up in the menu. If I then uncheck "Show in menus", the sub-pages won't show up in the menu either.

    Essentially what I'm trying to do here is allow a convenient way to edit two different "versions" of the site. We target multiple locations with our website, and depending on the location, the content needs to be slightly different. It would be ideal if I could somehow group specific page types to make it easy to edit content from a specific location without having multiple pages with the same names grouped together.

    At the very least, I could distinguish between page types in the tree view by showing a different icon, depending on the page type.

    If anyone could help me solve this problem, it would be greatly appreciated.

  • joshy
    Avatar
    Community Member
    57 Posts

    Re: How do I go about adding groups to the Site Tree to group specific page types? Link to this post

    Well there are three ways you could do it:

    1. Use the multi-language features in Silverstripe to create a 'bilingual' website, even if it just means the content is slightly different.

    2. Say you had three 'different' versions of the site. You could have three top level pages in the hierarchy and under that have your different pages. In the page controller you could find what version of the site the user is viewing (from domain, session or cookie - whatever) and show them that menu structure.

    3. You could relate an object for TypeOfPage to each Page and in the site only show the pages which are related to this type.

    I am not sure which is better for your needs and it depends if you want what is cleanest or what is easiest for the admin or front-end user.

    Cheers,

    Josh

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