22404 Posts in 6883 Topics by 2748 members
|Go to End|
28 May 2010 at 4:05am
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?
29 May 2010 at 10:23am
Have you tried deleting the contents of the temp directory? This will remove all manifest artifacts, which may be confusing the issue. flush=all removes most but not all of this. Then do a dev/build again. Hopefully you can see the TextPage table in the database again. Then change the page types back. Watch that any data in the extension tables for the TextPage/ActionPage class is copied back appropriately if necessary.
|Go to Top|