"Fixed" part of website

Topics: Developer Forum
Jul 21, 2008 at 12:21 PM

I have a special administrator part for the website which doesn't require any content management since this is a fixed set of pages. Is there any way to implement this in the sitemap? I can of course create redirects for all the pages, but that's a lot of work and will not always work with the url rewriter.

I just want the pages to appear in the menu and want to filter automatically. Do I have to write a custom sitemap provider or do you support this kind of parts in a website with N2CMS?
Jul 22, 2008 at 10:11 AM
Perhaps you could tweak your start page class and have it's GetChildren return some auto-generated content items that redirect to your administration pages,e.g.

public override ItemList GetChildren()
    ItemList children = base.GetChildren();
    if (IsAdministrator())
        children.Add(new RedireectPage("/admin/default.aspx"));
    return children