Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hey there can any one tell me how to hide preview button?
maybe this package can help you out: https://our.umbraco.com/packages/collaboration/backoffice-tweaking/
hey julien kulker
Backoffice Tweaking package ignore all admin user..
i want to hide preview button for all user.
step 1: Go to the editfile: ~/Umbraco/Views/components/content/edit.html
step 2: replace the button preview with
ng-if="!page.isNew && content.allowPreview"
label="Preview page test"
step 3: create a new folder "CustomCss" inside the App_Plugins folder:
step 4: create inside the CustomCss folder a new manifest file with this config:
step 5: Inside the CustomCss folder create the style.css
step 6: add the following style:
So this only hides it not disabling it. If you want to disable it maybe you should override the preview event to do nohting on the action. if possible.
This can be done pretty easy hooking into one of the EditorModel events provided by Umbraco : https://our.umbraco.com/documentation/Reference/Events/EditorModel-Events/
Here you can find a sample on how to disable preview :
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted