473,833 Members | 2,199 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4463
One solution might be to could vary your site map nodes by querystring
parameters. Another solution might be to use the Context.Rewrite Path 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 SiteMapDataSour ce has some properties that
should be able to help you such as ShowStartingNod e, StartFromCurren tNode,
StartingNodeOff set, 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******** ********@TK2MSF TNGP02.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******** ********@TK2MSF TNGP02.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.netNoS pamMwrote in
message news:uW******** ******@TK2MSFTN GP04.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******** ********@TK2MSF TNGP02.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
6160
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 a tree that will have a,b,c & d as leaf nodes - this tree will contain nodes other than a,b,c & d as interior nodes: e.g. x / \
1
3108
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
4532
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 pages in the root of the Web project. VS2005 creates the folling aspx: <asp:SiteMapPath ID="SiteMapPath" runat="server"> <PathSeparatorTemplate> <img src="Images/arrow-right.jpg" /> </PathSeparatorTemplate> </asp:SiteMapPath>
5
3225
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: <siteMapNode title="annual report" description="Annual report" url="Pages/ir_annuals.aspx" /> but the sitemappath control doesn't show the path if the page has the url
1
4007
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
3745
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 ' Add node
4
2099
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, and guaranteed to exist. The real life scenario is an application's configuration file. I want to extract a particular config parameter, do some non-trivial transformations on it (external to XSLT) , then put the transformed value back. How...
2
4269
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 Each page receives a query string i.e. productGroup.aspx?id=9 The page then renders with the appropriate details which have been accessed
1
2390
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 names, stored in our db using escape characters like: "è" When we set the SiteMapNode.Title to that value it is escaped by the sitemappath to "è" which results in the ampsand and code being printed out vs the desired character of: è
0
9796
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10782
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10500
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10543
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9323
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7753
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4422
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.