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

Forums / General Discussions / Temporarily "'disabling" Pages

Temporarily "'disabling" Pages

8 posts, 0 answered
  1. Robert
    Robert avatar
    4 posts
    Registered:
    26 Feb 2008
    25 Oct 2009
    Link to this post
    Is there any way to make a web page temporarily "not live". i.e. not delete the page but have it not live.

    Not only to remove it from the navigation, which i know is possible, but to make it unavailable (temporarily) even if somebody types in the complete URL?

    Thanks...
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Oct 2009
    Link to this post
    Hi Robert,

    The required functionality is not supported yet. You can set Deny Anonymous for this page and revoke the permissions for all roles. By doing so the page will not be visible in the navigation and no one will be able to access it. Another option could be using a control that appends a query string to the url, then all paged that has this query string will be redirected to your 404 page.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Robert
    Robert avatar
    4 posts
    Registered:
    26 Feb 2008
    25 Oct 2009
    Link to this post
    Hi Ivan,

    Thank you very much for your prompt response.

    In your first solution, will the page still be visible on the backend for admin users if permission is revoked for all roles, and if not, how is the page reinistated?

    I'm a little surprised that the facility to disable pages hasn't been implemented. Are there any plans to include this in future releases?
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    26 Oct 2009
    Link to this post
    Hi Robert,

    In the first solution you are not actually able to revoke permissions from the administrator users - they are unrestricted users. To make this process even easier you can create a page lets call it Disabled Pages and since child pages inherit permissions from parent pages once you set the permissions as Ivan described you can just move "disabled" pages to be child pages of this page. This page does not need to be a Group Page it can be just a Normal Page.

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Robert
    Robert avatar
    4 posts
    Registered:
    26 Feb 2008
    26 Oct 2009
    Link to this post
    Thanks Radoslav ,

    However, I have done what you suggest, but the pages are still viewable from the web site front end when the entire URL is typed in. Even though, the "disabled" page and it's child pages (the ones I want to "disable") have all permissions revoked and appear in navigation switched off.
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    26 Oct 2009
    Link to this post
    Hello Robert,

    Are you trying to access those pages when logged in as administrator? If you have Deny Anonymous access to the pages you should not be able to navigate to a page. If you then Deny View permission to roles they should also not be able to view those pages. An error message will be thrown.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Robert
    Robert avatar
    4 posts
    Registered:
    26 Feb 2008
    26 Oct 2009
    Link to this post
    Hi Radoslav yes, I was logged in as administrator.
    When logged out it redirects from the 'disabled' page url to the backend homepage as I think you expected.
    However, this is not great for an anonymous website visitor who shouldn't even know the backend exists.
    I have a custom 404 page - can I invoke this when someone tries to view a 'disabled' page, rather than redirecting to the backend log-in page?
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 Oct 2009
    Link to this post
    Hi Robert,

    You can check the status code of the request and redirect to the nopermissions.aspx page located under Sitefinity/ directory. There is a custom code in Application_Error of Sitefinity's Global.asax that you can use.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
8 posts, 0 answered