473,326 Members | 2,113 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,326 software developers and data experts.

Leaf Node in SiteMapPath

Hi Gang,

I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down to
an 'Article' leaf node. But the Article page shows one of many individual
articles depending on which article the user chooses in the Articles page.
The way it is set up now, if the user selects a particular article in the
'Articles' page, the SiteMap looks like this: '. . . Articles Article'.
Assuming the user choses a cookie baking article, I would like it to read
like this: '. . . Articles How to Bake Chocolate Chip Cookies'. In other
words, I am trying to make the leaf node of the SiteMapPath show the name of
the article. I know there's a way because all the sites do this but I can't
find it.

And I have another one which is related: how do you hide the 'Article' node
in a menu which is bound to the same Site Map as the above SiteMapPath? I
can disable it but I just don't want it to appear at all.

Thanks for any ideas.

Steve
Sep 15 '06 #1
3 4434
One solution might be to could vary your site map nodes by querystring
parameters. Another solution might be to use the Context.RewritePath method
to make it appear that your "Chocolate Chip Cookies" page has a unique URL
when in reality (behind the scenes) it shares a URL with many other "pages".
Here's more info:
http://windowssdk.msdn.microsoft.com.../sa5wkk6d.aspx

As for your second question, the SiteMapDataSource has some properties that
should be able to help you such as ShowStartingNode, StartFromCurrentNode,
StartingNodeOffset, and StartingNodeUrl. Depending on the specifics of your
needs, I imagine one or more of these properties will help you out.
Here's more info:
http://SteveOrr.net/articles/SiteMaps.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Uriah Piddle" <st*************@msn.comwrote in message
news:ek****************@TK2MSFTNGP02.phx.gbl...
Hi Gang,

I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down to
an 'Article' leaf node. But the Article page shows one of many individual
articles depending on which article the user chooses in the Articles page.
The way it is set up now, if the user selects a particular article in the
'Articles' page, the SiteMap looks like this: '. . . Articles Article'.
Assuming the user choses a cookie baking article, I would like it to read
like this: '. . . Articles How to Bake Chocolate Chip Cookies'. In other
words, I am trying to make the leaf node of the SiteMapPath show the name
of the article. I know there's a way because all the sites do this but I
can't find it.

And I have another one which is related: how do you hide the 'Article'
node in a menu which is bound to the same Site Map as the above
SiteMapPath? I can disable it but I just don't want it to appear at all.

Thanks for any ideas.

Steve

Sep 15 '06 #2
TITLE shows up on the menu. Description shows up on SiteMapPath. Set both
and you should be fine.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Uriah Piddle" <st*************@msn.comwrote in message
news:ek****************@TK2MSFTNGP02.phx.gbl...
Hi Gang,

I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down to
an 'Article' leaf node. But the Article page shows one of many individual
articles depending on which article the user chooses in the Articles page.
The way it is set up now, if the user selects a particular article in the
'Articles' page, the SiteMap looks like this: '. . . Articles Article'.
Assuming the user choses a cookie baking article, I would like it to read
like this: '. . . Articles How to Bake Chocolate Chip Cookies'. In other
words, I am trying to make the leaf node of the SiteMapPath show the name
of the article. I know there's a way because all the sites do this but I
can't find it.

And I have another one which is related: how do you hide the 'Article'
node in a menu which is bound to the same Site Map as the above
SiteMapPath? I can disable it but I just don't want it to appear at all.

Thanks for any ideas.

Steve

Sep 16 '06 #3
Thanks Steve and Gregory,

On the sitemappath issue, I am passing the title in the query string and
coding based on this article that I found and it works well. The author does
not put the page that shows the data in question in the SiteMap but instead
creates a sitemappath node and appends it to the root node which looses all
the ancestor nodes. I included that page in the SiteMap and just changed the
title of the current node in the event handler he discusses.

The article: http://msdn.microsoft.com/msdnmag/is...06/WickedCode/

Still working on the menu.

Steve

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:uW**************@TK2MSFTNGP04.phx.gbl...
TITLE shows up on the menu. Description shows up on SiteMapPath. Set both
and you should be fine.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Uriah Piddle" <st*************@msn.comwrote in message
news:ek****************@TK2MSFTNGP02.phx.gbl...
>Hi Gang,

I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down
to an 'Article' leaf node. But the Article page shows one of many
individual articles depending on which article the user chooses in the
Articles page. The way it is set up now, if the user selects a particular
article in the 'Articles' page, the SiteMap looks like this: '. . .
Articles Article'. Assuming the user choses a cookie baking article, I
would like it to read like this: '. . . Articles How to Bake Chocolate
Chip Cookies'. In other words, I am trying to make the leaf node of the
SiteMapPath show the name of the article. I know there's a way because
all the sites do this but I can't find it.

And I have another one which is related: how do you hide the 'Article'
node in a menu which is bound to the same Site Map as the above
SiteMapPath? I can disable it but I just don't want it to appear at all.

Thanks for any ideas.

Steve


Sep 17 '06 #4

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

Similar topics

4
by: abhrajit | last post by:
I'm looking for a C/C++/Java library to create a balanced binary tree data structure given a set of leaf nodes as input. A leaf node should never become an interior node. So if I wish to create...
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: ...
1
by: mazdotnet | last post by:
Hi, I'm using the asp:TreeView component of asp.net 2.0 and my tree is structure is Root -- Parent 1 --------- Leaf 1 --------- Leaf 2
1
by: shapper | last post by:
Hello, I want to add nodes to Asp.Net 2.0 SiteMapPath in my runtime code. I did as follows: ' Create site map path node collection Dim siteMapPathNodeCollection As SiteMapNodeCollection ...
4
by: daniel.bron | last post by:
Hello, Given a XML document, an XPath to a leaf node, and a string value, what is the briefest XSLT transform to change that node's value to the given string? The node is unique, unrepeated,...
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 ...
1
by: =?Utf-8?B?bWljaGFlbHJp?= | last post by:
We are dynamically changing the title property of nodes in our sitemappath to reflect the names of products by handling the SiteMapResolve event. We have some unicode characters in our product...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.