Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sitemap with querystring

Status
Not open for further replies.

dstrange

Programmer
Nov 15, 2006
87
CA
Hi All,

Currently I have a page titled test.aspx.
Here's the sitemap info:
Code:
<siteMapNode url="~/default.aspx" title="Home"  >
    <siteMapNode url="~/test.aspx" title="test"  >
      <siteMapNode url="~/test.aspx?archive=y" title="test archive"   />
      <siteMapNode url="~/test.aspx?archive=y&amp;Yr=?" title="test archive"   />
      <siteMapNode url="~/test.aspx?archive=y&amp;Yr=?&amp;Mth=" title="test archive"  />
    </siteMapNode> 
</siteMapNode>

I have a page that displays content based on it's filtering through a couple of querystrings.

most recent - (test.aspx)
Breadcrumb: Home | Test

archived - (test.aspx?archive=y)
Breadcrumb: Home | Test | Test Archive

archived by year - (test.aspx?archive=y&Yr=2009)
Breadcrumb: Home | Test | Test Archive

archived by year and month - (test.aspx?archive=y&Yr=2009&Mth=5)
Breadcrumb: Home | Test | Test Archive

I want the breadcrumbs of this page to change depending on what the querystrings are (archive=y present or not present in the URL). How can this be done without adding all the values for each month and year?

Basically I'm asking how can I alter the breadcrumb to display as 'test archive' if there is 'archive=y' anywhere in the URL.

As of right now;
test.aspx displays correctly
Breadcrumb: Home | Test

Any filtering with just archive is correct
Breadcrumb: Home | Test | Test Archive

Any filtering by archive and year and/or month is incorrect.
I'm not too sure how to filter a sitemap based on querystring.
Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top