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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Remove preview pane on a specific page type

Go to End



Community Member, 24 Posts

21 November 2013 at 12:10am

I have several page types that are not working properly in the CMS because the preview pane is enabled.

1) I have a simple "LogoutPage" type which allows users to add a logout link to the various navigation areas. The problem is when the preview is generated in the CMS, the user is logged out and can no longer edit the MenuTitle of this new page.

2) I have a page type which relies on a fallback call of parent::getContent(). While this works fine on the front end, it causes an error on the CMS. Again, disabling the preview pane would solve my problem.

How can I disable the preview pane on specific page types?

Is there not something simple like... static $enable_preview = false ; ???