Jump to:

23546 Posts in 19335 Topics by 2889 members

General Questions

SilverStripe Forums » General Questions » Remove preview pane on a specific page type

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

Page: 1
Go to End
Author Topic: 213 Views
  • Spambanjo
    Avatar
    Community Member
    15 Posts

    Remove preview pane on a specific page type Link to this post

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

    213 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.