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

Forums / General Discussions / Sitemap from particular node

Sitemap from particular node

9 posts, 0 answered
  1. skysailor
    skysailor avatar
    17 posts
    Registered:
    08 Jul 2007
    23 Apr 2008
    Link to this post
    Hi,
    I would like to display a menu or treview of my web site structure from within a template (or on a content page). I would like to be able to show just a PART of the site structure in the menu - not the whole structure. I want to show all pages that are in a branch below a page group only.
    For example I want to have TWO different menus - one showing the pages under the page group called "Admin help" and one showing all the pages under the page group called "User help". How can I achieve this?
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    23 Apr 2008
    Link to this post
    Hello skysailor,

    I would suggest you declare the SiteMenu control on the .master page that is used by the pages under "Admin help" and set StartingNodeOffset property to offset from the starting node. Here is a simple example:

    <%@ Master Language="C#" %> 
    <%@ Register Src="~/Sitefinity/UserControls/Navigation/SiteMenu.ascx" TagName="SiteMenu" TagPrefix="uc" %> 
    ... 
        <form id="form1" runat="server"
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
            <uc:SiteMenu ID="SiteMenu1" runat="server" StartingNodeOffset="1"/> 
    ... 

    Respectively, the same approach should be used for the pages under "
    User help".

    Hope this helps.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. skysailor
    skysailor avatar
    17 posts
    Registered:
    08 Jul 2007
    28 Apr 2008
    Link to this post
    We finally got this to work. The problem was that the navigation controls sitemap seems to reflect the status of published pages only - we are using the workflow mode. All our pages were in draft mode and when we used the settings below no pages would appear in the navigation control in edit mode or preview mode.

    This limitation makes it difficult to create your web site. You shouldn't need to publish to get the navigation to work.
  4. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    28 Apr 2008
    Link to this post
    Hello skysailor,

    The feature of not showing the pages that are not published in the navigation is implemented by design. Namely, as the page should not be visible until is published, we also think that it should not be visible in the navigation.

    However, there are ways around it. If you would to create your own data sources by calling the API methods in Telerik.CmsManager class you can query pages by status as well, so you'd be able to get all pages.

    Let me know if you need any additional information or if you have any other questions. I am sorry that the feature we have implemented does not fullfil your desired needs out of box.

    Best wishes,
    Ivan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. skysailor
    skysailor avatar
    17 posts
    Registered:
    08 Jul 2007
    28 Apr 2008
    Link to this post
    If I am viewing an unpublished page then the sitemap should reflect the list of unpublished pages. If I am looking at a published page then the sitemap should reflect published pages. How can I build a site without publishing it? I don't want to have to publish my site until it is complete. If I can't get the navigation to work until the site is published then that isn't very helpful.

    I have also noticed that you can't duplicate a page unless it is published. That is bizarre (or a bug). When setting up a site you often need to duplicate pages that are in draft during the initial construction.
  6. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    03 May 2008
    Link to this post
    Hello skysailor,

    While I can understand your logic, we think that such a feature that would reflect different navigation based on the state of a page could produce a lot of confusion among majority of our users. You can see all pages, regardless of their state in the administration area (Pages section) on the left side. You can filter the pages also based on their current status (same section). As for not wanting to publish a site until it's complete, you can build your site on a staging server first and deploy it to a production server. Another way is to create initial website on your local machine and then publish it to the production server. Finally, you can implement your own navigational controls and specify the criteria there as to which pages should be visible in the navigation at which time.

    I was not able to reproduce the problem with duplicating pages that are not published. Could you please provide us with some details on this issue.

    1. Which version of Sitefinity are you using?
    2. What are the permissions of the user trying to duplicate a page?
    3. Is there a message you receive when you try to duplicate a page? Can you post us a screenshot?

    I am sorry that Sitefinity cannot accommodate your needs out of box, but we'll try to help you as much as possible to find workarounds.

    Sincerely yours,
    Ivan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. skysailor
    skysailor avatar
    17 posts
    Registered:
    08 Jul 2007
    04 May 2008
    Link to this post
    Somebody else in our team has already posted the problem with duplicating unpublished pages on this thread :-
    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bdebad.aspx
    It has been acknowledged as a bug and will be fixed.
  8. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    05 May 2008
    Link to this post
    Hi skysailor,

    I wanted to thank you for letting me know that the bug has been reproduced and acknowledged. I really appriciate it.

    Let me know if there is anything else I can assist you with.

    All the best,
    Ivan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Pete
    Pete avatar
    6 posts
    Registered:
    05 Apr 2008
    18 Jun 2008
    Link to this post
    .....Thanks Ivan, this thread helped me do what I needed realy quickly. Pete.
Register for webinar
9 posts, 0 answered