Skip to content

How to turn off the preview window in the administration interface? #5699

Answered by niklasnatter
lukasmat asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,
looks like you already found a solution, so thanks a lot for helping others by posting this!

As you already mentioned, the preview can be disabled for the whole project via the symfony configuration (see https://docs.sulu.io/en/2.2/bundles/preview/). You can add this configuration to any file inside of the config/packages directory (you could also create a new sulu_preview.yaml).

# config/packages/sulu_preview.yaml
sulu_preview:
    mode: 'off'

If you want to disable the preview for pages of a single template (eg. the default template), you can overwrite the previewCondition which is set in the PageAdmin:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukasmat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants