Jump to:

3428 Posts in 1056 Topics by 733 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Excluding Certain ClassNames from Site Tree

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

Page: 1
Go to End
Author Topic: 477 Views
  • Garrett
    Avatar
    Community Member
    245 Posts

    Excluding Certain ClassNames from Site Tree Link to this post

    Hi,

    For reasons too long and boring to go into, I've got a couple of Page Types / ClassNames that I would like NOT to show in the Site Tree hierarchy in the CMS. Where in the core code can I place this logic? Basically I have a relation between two page types such that each relation that is made from within those two respective page types creates a page instance of the relational page type in the CMS interface (two $has_many's and a $has_one with two entries on the other side). This is obviously not desirable. Can anyone help me find the right place to include this code?

    Contrary to my intuition, /cms/code/CMSSiteTreeFilter.php did not seem to be the right place to do it.

    Thanks,
    Garrett

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