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

Forums / Suggestions / Redirect pages show in Navigation (only when ....

Redirect pages show in Navigation (only when ....

6 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    30 Jan 2012
    Link to this post
    At the moment there is an option under Titles & Properties for Redirect Pages "Show in Navigation"

    However if the page redirecting to is an internal page and has been set not to be shown in navigation then the redirect page is not shown even though the checkbox "show in navigatin is checked"

    This is very confusing to clients.

    Sometimes you have a navigation where you have multiple pages not to be shown in the main (or automatic) navigation but you might want to link to them anyhow.

    So I think the right way to do this is

    a) show the redirect page in navigation if show in navigation is checked
    unless
    1) the page redirecting to is not published
    2) the user does not have rights on the page redirecting to
    3) the page redirecting to is not currently scheduled to be shown.

    Markus
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    31 Jan 2012
    Link to this post
    Hello Markus,

    Thank you for your constructive feedback.

    At the moment this is the default behavior of pages that redirect to other pages, which are not  visible in navigation. However, I've logged your suggestion as a feature request, which will be considered for implementation from our developers team.

    Kind regards,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    21 Feb 2012
    Link to this post
    Dear Jen

    Is there an PITS item for this were we can vote for?

    Kind regards,
    Markus
  4. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    21 Feb 2012
    Link to this post
    Hi Markus,

    Here's the link to PITS.

    All the best,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Brett Whittington
    Brett Whittington avatar
    89 posts
    Registered:
    10 Aug 2012
    20 Aug 2012
    Link to this post
    Hey Markus, I ran into this issue today as well.  Not sure if you have been using built in controls or if you built your own navigation, but I found you can fix this by checking the following when you are writing out your links.
    if ((smn.IsPublished() && smn.ShowInNavigation) || (smn.ShowInNavigation && smn.NodeType == NodeType.InnerRedirect))

    The first part of my if is checking for published items that should show in the navigation.  The second part is checking for Inner Redirects that show in the navigation. 
    It might be possible to extend PageSiteNode object to add a method that would do this check for all items that should show in the Navigation.
  6. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    21 Aug 2012
    Link to this post
    @Brett
    Thanks for the solution. I use the default SitefinitySiteMap.

    @Telerik
    Would it make sense to you that redirects internal and external would work the same way? 
    If yes, could Bretts solution be implemented into 5.2 easely?

    Markus
6 posts, 0 answered