473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SiteMapPath Control and dynamic items

Hi,
I've got web.sitemap file with few nodes and subnodes and SiteMapPath
control. It works fine.
But imagine, I'm worrking on an calender implemented this way:

calendar.aspx -> showing upcomming events
calendar.apsx?year=2005 showing calendar for year 2005
calendar.apsx?year=2005&month=1 showing january in 2005
calendar.aspx?year=2005&month=1&day=1 showing 1/1/2005

and in my web.sitemap I've defined only
<siteMapNode url="~/Calendar.aspx" title="Calendar" description=""/>

By this implementation SiteMapPath control shows i.e "Home > Calendar" all
the time. I would like to ask you, if I can get following results easilly.
"Home>Calendar>2005"
"Home>Calendar>2005>January"
"Home>Calendar>2005>January>1"

BTW: of course I dont wan't to add manually every SiteMapNode for every item
into web.sitemap file ;)

Do you have any link to example I need? Or your own solution? I'll be
pleased with any response.
Thanks before for your answer.
Regards
Robert
Nov 19 '05 #1
4 2570
You'll want to override the SiteMapProvider's SiteMapResolve event.
You can inject dynamic site nodes into the SiteMapPath by retuning
them from this event. You can google for SiteMapResolve and come up
with a samples, but feel free to post questions, because it is a
tricky event to manage, IMHO.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 15 Oct 2005 10:44:51 +0200, "Robert Camsky"
<ro**********@atlas.cz> wrote:
Hi,
I've got web.sitemap file with few nodes and subnodes and SiteMapPath
control. It works fine.
But imagine, I'm worrking on an calender implemented this way:

calendar.aspx -> showing upcomming events
calendar.apsx?year=2005 showing calendar for year 2005
calendar.apsx?year=2005&month=1 showing january in 2005
calendar.aspx?year=2005&month=1&day=1 showing 1/1/2005

and in my web.sitemap I've defined only
<siteMapNode url="~/Calendar.aspx" title="Calendar" description=""/>

By this implementation SiteMapPath control shows i.e "Home > Calendar" all
the time. I would like to ask you, if I can get following results easilly.
"Home>Calendar>2005"
"Home>Calendar>2005>January"
"Home>Calendar>2005>January>1"

BTW: of course I dont wan't to add manually every SiteMapNode for every item
into web.sitemap file ;)

Do you have any link to example I need? Or your own solution? I'll be
pleased with any response.
Thanks before for your answer.
Regards
Robert


Nov 19 '05 #2
Scott, glad to see you in this topic as I've learned a lot from your early
work in this context. Have you blogged the methodology to support multiple
SiteMapPaths yet?
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:94********************************@4ax.com...
You'll want to override the SiteMapProvider's SiteMapResolve event.
You can inject dynamic site nodes into the SiteMapPath by retuning
them from this event. You can google for SiteMapResolve and come up
with a samples, but feel free to post questions, because it is a
tricky event to manage, IMHO.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 15 Oct 2005 10:44:51 +0200, "Robert Camsky"
<ro**********@atlas.cz> wrote:
Hi,
I've got web.sitemap file with few nodes and subnodes and SiteMapPath
control. It works fine.
But imagine, I'm worrking on an calender implemented this way:

calendar.aspx -> showing upcomming events
calendar.apsx?year=2005 showing calendar for year 2005
calendar.apsx?year=2005&month=1 showing january in 2005
calendar.aspx?year=2005&month=1&day=1 showing 1/1/2005

and in my web.sitemap I've defined only
<siteMapNode url="~/Calendar.aspx" title="Calendar" description=""/>

By this implementation SiteMapPath control shows i.e "Home > Calendar" all
the time. I would like to ask you, if I can get following results easilly.
"Home>Calendar>2005"
"Home>Calendar>2005>January"
"Home>Calendar>2005>January>1"

BTW: of course I dont wan't to add manually every SiteMapNode for every
item
into web.sitemap file ;)

Do you have any link to example I need? Or your own solution? I'll be
pleased with any response.
Thanks before for your answer.
Regards
Robert

Nov 19 '05 #3
On Sat, 15 Oct 2005 13:51:08 -0500, "clintonG"
<cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote:
Scott, glad to see you in this topic as I've learned a lot from your early
work in this context. Have you blogged the methodology to support multiple
SiteMapPaths yet?


No Clinton, I haven't gotten around to it as yet. :)

--
Scott
http://www.OdeToCode.com/blogs/scott/
Nov 19 '05 #4

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:uj********************************@4ax.com...
On Sat, 15 Oct 2005 13:51:08 -0500, "clintonG"
<cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote:
Scott, glad to see you in this topic as I've learned a lot from your early
work in this context. Have you blogged the methodology to support multiple
SiteMapPaths yet?


No Clinton, I haven't gotten around to it as yet. :)

--
Scott
http://www.OdeToCode.com/blogs/scott/


We can do so but there's some requirements to be aware of. I don't recall
the specifics and thought I saved the page where I learned this but can't
find it anymore. Damn.

<%= Clinton Gallagher
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Danial | last post by:
Hi, How can I bind sitemappath (breadcrumb control of asp.net) to a custom ..sitemap file? By defualt its looking for web.sitemap file and giving me not found exception. Thanks Danial
1
by: Jules | last post by:
In a ASP.NET 2.0 project I'd like to set an image as path separator in the SiteMapPath. When I edit the PathSepartor template (for this SiteMapPath) and drag an image on it, it works fine for all...
5
by: Jon via DotNetMonster.com | last post by:
Hi all, I'm using the ASP.NET sitemappath control and the ASP.NET menu control This sitemappath control works and shows the path when the page doesn't have an anchor - for example: ...
0
by: news.sbcglobal.net | last post by:
Hi. I was wondering if someone could tell me how to set SiteMapPath control styles in a .skin file. I've tried this (see below) but it doesn't work: <asp:SiteMapPath runat="server"...
1
by: sean.marchetti | last post by:
Hello, I am having a little difficulty coming up with a solution for the following requirement and I was hoping somebody might be able to offer some help. I need to create a SiteMapPath for a...
1
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level...
2
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
I’m trying to create a dynamic asp.net 2.0 siteMapPath control (using VB.net). Using the xml sitemap I’ve got these three pages: productGroup.aspx productListing.aspx productDetail.aspx ...
0
by: hummh | last post by:
Hi, I'm fighting with the asp.net 2.0 sitemappath control. I want to render breadcrumb items using <uland <litags, but the control mixes them with <spantags. That leads to invalid XHTML...
0
by: =?Utf-8?B?TWFoZXNoIE5pbWJhbGthcg==?= | last post by:
Hi All, I am using WCSF in my application. I have Menu control and SiteMapPath, which are consuming SiteMapDataSource source provided by WCSF. Now I have Report Details page that is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.