Copied to clipboard

Flag this post as spam?

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


  • glob 72 posts 172 karma points
    Sep 16, 2014 @ 12:04
    glob
    0

    Umbraco Preview button

    Hello

    I want to get preview button click event or umbraco api for the same, is it possible ?

     

     

  • Dan Lister 416 posts 1974 karma points c-trib
    Sep 16, 2014 @ 16:39
    Dan Lister
    0

    Hi Glob,

    I don't think there is an event but there is a property on the current Umbraco Context instance you could use to determine whether the current request is a preview request. You could use this on your template for example. What are you wanting to accomplish when an editor clicks on the preview button?

    Umbraco.Web.UmbracoContext.Current.InPreviewMode
    

    Thanks, Dan.

  • glob 72 posts 172 karma points
    Sep 17, 2014 @ 06:14
    glob
    0

    Thanks for your quick reply,

    I want to send sms on click of preview button, do u have any idea how to do?

Please Sign in or register to post replies

Write your reply to:

Draft