+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / ResourceLink Control Page Mode option

ResourceLink Control Page Mode option

3 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    21 Jan 2011
    Link to this post
    Is there an option in the ResourceLinker that would allow me to specify that I only want a resource to download for Design Mode, Live, or Both?

    ...if not...can you add that in as a feature request? :)
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Jan 2011
    Link to this post
    Hi Steve,

    The control does not have option to specify whether the script will be loaded only in Design, Live, Preview. I will add this as a feature request(386493).

    Currently this could be done with a custom control.

    IsDesignMode is extension static method which determines whether the control is in Sitefinity design mode - you  are editing a page. There are also

    • IsPreviewMode- determines whether the control is in Sitefinity preview mode.
    • IsBackend -determines whether a control instance is in backend.


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    21 Jan 2011
    Link to this post
    Awesome thx, it'd be super nice to have a property available in the template to just choose which mode to use.

    fyi, fantastic feature...everything being compressed into one request is crazy convenient :)
3 posts, 0 answered