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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Excluding Certain ClassNames from Site Tree


Go to End


1089 Views

Avatar
Garrett

Community Member, 245 Posts

16 March 2011 at 7:14am

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