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.

General Questions /

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

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

Remove preview pane on a specific page type


Reply


298 Views

Avatar
Spambanjo

Community Member, 17 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.

Scenario:
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 ; ???