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

Forums / Developing with Sitefinity / functionality similar to: show in sitemap ---- show in front end

functionality similar to: show in sitemap ---- show in front end

4 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    10 Nov 2009
    Link to this post
    Hi

    I need to add something in the page properties section that is similar to the show in sitemap radio button, however it will be called show in front end.

    if enabled it will do 2 things:
    1) not show in sitemap
    2) if someone browses to the page, it will not show the page, or any of its history,
       It will simply show a 404 page not found


    could you let me know how i would do this please?
    thanks

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    10 Nov 2009
    Link to this post
    Hello Quade,

    Adding custom page properties is not supported in Sitefinity 3.x. We will implement this from Sitefinity 4.0 where the page API will be completely different. Your request is not clear about whether you what to implement this functionality - backend or front end.

    backend

    1) not show in sitemap

    You can access the RadTreeView control that shows the SiteMap and get access to NodeBound event. Then hide the nodes you do not want to see. The control is located under ~/Sitefinity/Admin/ControlTemplates/Pages/SiteMapPanel.ascx

    2) if someone browses to the page, it will not show the page, or any of its history,
    It will simply show a 404 page not found

    After you are done with Step one the page will not be bound and it will not be accessible.

    Best wishes,
    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. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    11 Nov 2009
    Link to this post
    Thanks Ivan
    Just to confirm about the front end backend bit

    1) not show in sitemap - this is controlled in the backend, and only effects pages shown on front end (much like the show in menu option)

    2) 404  - this is only when a front end request is made

    cheers
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    11 Nov 2009
    Link to this post
    Hello Quade,

    You can use Show in Navigation option. You should create an IHttpHandler to handle .aspx request. You need to create an instance of CmsManager and get the page by url. If the page.Navigable is set to false - throw 404 error or make response redirect to another page. You can use some identifier from the page name or description istead of using Navigable property.

    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
4 posts, 0 answered