I'm made a slight extension to ImageGalleryPage, so my new page type is MyImageGalleryPage. What i need to do now is ensure that even Admin user on a website is not given option to create a page using the original page type.
Now I've found both these threads:
http://www.silverstripe.org/general-questions/show/258913?start=0
http://silverstripe.org/archive/show/51003?start=0#post51031
but both suggest making change to the page you 3wish to disable, in my case ImageGalleryPage.php
Now my problem is that if I do that then this change will be negated every time I upgrade the ImageGallery module.
Can I disable ImageGalleryPage from within MyImageGalleryPage.php?