do you guys know about allowPreview propery of a content? I want to disable preview button for some DocType only
Hi guys,
I'm finding way to disable preview button for some specific DocTypes only. I found in contentEditor directive has an flag named allowPreview (see here: http://prntscr.com/jouku1) but haven't found where it come from. Do you know about that property? please help if any idea to disable preview button as my issue.
do you guys know about allowPreview propery of a content? I want to disable preview button for some DocType only
Hi guys,
I'm finding way to disable preview button for some specific DocTypes only. I found in contentEditor directive has an flag named allowPreview (see here: http://prntscr.com/jouku1) but haven't found where it come from. Do you know about that property? please help if any idea to disable preview button as my issue.
Thanks, Nick
Hi Nick,
You can need to set this in code.
Have a look at the code example in the comments of this issue
http://issues.umbraco.org/issue/U4-8530
Dave
Well done! It's worked for me, thanks Dave.
And I have a note that your solution is for Umbraco 7.6 or above, I also have a solution for older version here, in case someone need it:
https://github.com/dstream/Umbraco-HidePreviewButton
Cheers, Nick
is working on a reply...