Extending sitemap

Last post 11-04-2007 3:26 AM by c0rrupt. 2 replies.

Sort Posts:

  • Extending sitemap

    09-04-2007, 2:02 PM
    • Member
      59 point Member
    • c0rrupt
    • Member since 06-13-2006, 11:07 AM
    • Posts 185

     I have a web application that has forums. I would like to you the asp.net sitemap features for the dynamic forums.

    would it be efficient if I query a list of forums and sub forums from my database and transform it into the web.sitemap. Maybe I could add a sqldependency?

    Also note this. I have a url rewriter. "ViewTopic/234/1.aspx".  The "1" is the pagenumber, and "234" is the topicid. if i create a sitemap node with "ViewTopic/234", would asp.net recognize "ViewTopic/234/1.aspx as the same location?

  • Re: Extending sitemap

    09-06-2007, 2:22 AM
    Answer
    • Contributor
      2,273 point Contributor
    • Johnson2007
    • Member since 05-17-2007, 7:19 AM
    • Posts 449

     I am afraid you could not. web.sitemap is a static file at runtime, that is, you could not modify it at runtime. I think you can try to use the sitemap provider to try to implement it. more information at: http://msdn2.microsoft.com/en-us/library/aa479033.aspx . Thanks!

    Johnson
  • Re: Extending sitemap

    11-04-2007, 3:26 AM
    • Member
      59 point Member
    • c0rrupt
    • Member since 06-13-2006, 11:07 AM
    • Posts 185

     I found a way to get it working!

    Under the function FindSiteMapNode, I check the rawurl to see if it one the the pages I use for the paging. If it is, I replace the page number with a 1.

    A clean interface for the user, tons of information for a spider! 

Page 1 of 1 (3 items)