Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick Hoang 51 posts 180 karma points c-trib
    May 31, 2018 @ 04:09
    Nick Hoang
    0

    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

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 01, 2018 @ 07:40
    Dave Woestenborghs
    100

    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

  • Nick Hoang 51 posts 180 karma points c-trib
    Jun 13, 2018 @ 08:22
    Nick Hoang
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft