LiamC

yes very, I will have a look. Its annoying because what ive done actually works its just every single page type now says my extension name rather than the page types. Thanks for your help 🙂

LiamC

@andante Yeah it could but I went for a more modular approach

LiamC

Will have a read now and let you know. Thanks @dhensby

LiamC

its a pain having all page types available to each subsite. The subsites module "disallow page types" works via domain not subsite ID

LiamC

yes 3.6 I call the original funtion at the top of the new function , letting silverstripes core code run first before I change the data allowing me to control page types within various subsites through yml @andante

LiamC

Hello, injecting a new method into SiteTree to add functionality to page_type_classes(). For some reason CMSMain::PageTypes() is now returning the name of the injector as the class name for all page types?

LiamC

has anyone successfully managed to configure silverstripe subsite to restrict page types that you dont want on a specific subsite? I know there is a disallowed page types option but that only works via the domain not the subsite ID?