More in this section
Forums / Developing with Sitefinity / Admin Site Map with Large Page Count -- Finding Pages

Admin Site Map with Large Page Count -- Finding Pages

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. Adam
    Adam avatar
    63 posts
    30 Jan 2008
    10 Jan 2009
    Link to this post
    If I have a sitefinity site with thousands of pages, is there a way to search the sitemap to find a particular page to edit? 

    I have a client that will have a couple thousand pages, and the concern is that as the site grows it will become increasingly cumbersome to locate a page that needs to be edited in the Admin Site Map control. 

  2. Mike
    Mike avatar
    208 posts
    10 Dec 2007
    10 Jan 2009
    Link to this post
    I asked a similar question a while back, and URL rewriting was suggested to me.  So if you had a large number of pages in one folder, you could actually break them up into subfolders, categorizing however you want, but use a URL rewrite on the client page request to make it seem like they all came from the same folder.

    But you could also add a security trimmed control to your site that would put an Edit link on every page if the user had rights to edit.  If you append:


    to any page URL, you'll get that page in Edit mode.  That way you could navigate the site and edit from the page.  That doesn't help with unpublished pages, though.

    Or you can create a SiteMap page with the links pre-built, and secure the page to site admins.  If it's secured to site admins, you could show unpublished pages as well. 

    But a search feature for the Admin site map would be great!

    Mike Sharp
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    13 Jan 2009
    Link to this post
    Hi Mike,

    You could create a user control and bind it to SiteMapDataSource. Then select a page and open it, instead of entering ?cmspagemode=edit every time in the browser. You could place the control on a secured page and try to implement some kind of authentication.

    Here is an simple example where I am using RadComboBox control

    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" /> 
    <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SiteMapDataSource1"  
    MarkFirstMatch="True" Width="269px" onselectedindexchanged="RadComboBox1_SelectedIndexChanged" DataTextField="Title" DataValueField="Url"
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Edit" /> 

    and the code behind.

    protected void Button1_Click(object sender, EventArgs e) 
            string url = RadComboBox1.SelectedItem.Value; 
            url = ResolveClientUrl(url + "?cmspagemode=edit"); 

    I hope this helps.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Jason M
    Jason M avatar
    108 posts
    15 Jan 2007
    03 Feb 2009
    Link to this post
    Adam - Would inline editing work for you?  I think this is supposed to be release in 4.0, but in the meantime you could create a control that displays an edit link.  This will save people from navigating to pages through the Admin site.

    Sample code:


    //inline editing
    if (User.IsInRole("Editor"))
    string url = Request.Url.ToString();
        EditHyperLink.NavigateUrl = url +


Register for webinar
4 posts, 0 answered