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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


827 Views

Avatar
Spambanjo

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.

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