I have the following structure:
- Managed Services (Page type: TextPageHolder)
---- Dedicated servers (Page type: TextPage)
---- Hosted e-mail (Page type: TextPage)
---- Hosted SharePoint (Page type: TextPage)
I accidentally changed the class names of TextPage.php to class ActionPage and class ActionPage_Controller, and performed a /dev/build. I changed them back to class TextPage and class TextPage_Controller, but now these pages have been modified to the page type Page, and /dev/build is not picking up the page type TextPage again.
I tried adding the page type TextPage manually to the SiteTree table (enum field ClassName), but when I perform a /dev/build the page type TextPage is removed again, and the pages of the type TextPage are changed back to the page type Page.
What can I do to add the page type TextPage again?