473,503 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sitemap & duplicate URL's

Does anyone know a way to allow duplicate URL's in a sitemap?

Here's my problem:

I'm designing (almost done) an online store with the following navigational
structure:

Home / Department / product listing / product detail.

Each department and product listing have unique pages but the product detail
is a single page that is given a product ID parameter in the query string.

All pages are derived from a master page which has the siteMapPath control.

What I can't do is link from the product listing page to the product detail
page and show in the siteMapPath were the user has come from i.e.:

Home / Department / Product list /product detail

I’m aware that the default sitemap provider won’t allow duplicate URL’s.

I’d be grateful for some advice!

Apr 22 '07 #1
2 2407
You can allow a duplicate URL if you append a querystring parameter to the
end. It can be a dummy querystring parameter that doesn't do anything.
For example, the sitemap will see these as two separate pages:
Default.aspx
Default.aspx?dummy=1

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

"James Page" <Ja*******@discussions.microsoft.comwrote in message
news:CB**********************************@microsof t.com...
Does anyone know a way to allow duplicate URL's in a sitemap?

Here's my problem:

I'm designing (almost done) an online store with the following
navigational
structure:

Home / Department / product listing / product detail.

Each department and product listing have unique pages but the product
detail
is a single page that is given a product ID parameter in the query string.

All pages are derived from a master page which has the siteMapPath
control.

What I can't do is link from the product listing page to the product
detail
page and show in the siteMapPath were the user has come from i.e.:

Home / Department / Product list /product detail

I’m aware that the default sitemap provider won’t allow duplicate URL’s.

I’d be grateful for some advice!
Apr 23 '07 #2
Steve C. Orr [MCSD, MVP, CSM, ASP Insider] wrote:
You can allow a duplicate URL if you append a querystring parameter to
the end. It can be a dummy querystring parameter that doesn't do anything.
For example, the sitemap will see these as two separate pages:
Default.aspx
Default.aspx?dummy=1
Thanks Steve but there'e a problem with this work around

Say I've got the following pages:

Default.aspx, page1.aspx, page2,aspx & page3.aspx

The structure is that the default.aspx links to pages 1 & 2.aspx
Pages1 & 2 link to page3.aspx.

The sitemap =

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="~/default.aspx" title="Default" >
<siteMapNode url="~/page1.aspx" title="Page1">
<siteMapNode url="~/page3.aspx" title="Page 3" />
</siteMapNode>
<siteMapNode url="~/page2.aspx" title="Page2" >
<siteMapNode url="~/page3.aspx?id=2" title="Page 3" />
</siteMapNode>
</siteMapNode>
</siteMap>

A master page holds the siteMapPath.

All works fine when you link to page3 from page1 and the siteMapPath
looks like: default : Page 1 : Page 3

However when you link from page2 to page 3 the siteMapPath renders the
same as linking from page1 !

Also if you amend the first instance of page3.aspx to page3.aspx?id=1
the siteMapPath won't render at all!

I've tried all sorts of different combinations without success.

Thanks

James
Apr 24 '07 #3

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

Similar topics

2
3995
by: ad | last post by:
I need add two querysting in a node in web.sitemap: <siteMapNode url="~/LocalReport/RViewer.aspx?sKind=Acc_List"&MyYears=2006 title="WebReport" description="" roles="" /> But the compiler...
0
1395
by: Demetri | last post by:
Hello, I have built a web application with authentication modeled after the following video by Scott Guthrie: ...
5
1935
by: JJ | last post by:
Although this question involves Flash, I suspect the actual issue is an asp one.. I am trying to open the web.sitemap file in an .swf file enbedded in an asp page (I'm working in VS 2005). I...
1
3269
by: Luca88 | last post by:
Easy to use, install and configure, this is a php script that allows the generating of the sitemap.xml (xml sitemap requested by “Google Sitemap System”) in real time. Together with a custom...
4
5760
by: shapper | last post by:
Hello, I have 2 questions about Asp.Net 2.0 web.sitemap: 1. Where can I find the list of all siteMapNode attributes? I looked eveywhere and couldn't find it. 2. I created a Web.sitemap...
5
15034
by: Tim Mackey | last post by:
hi, i have put my web.sitemap in /App_Data so i can edit it programatically via a web admin page, inheriting the modify permissions from the App_Data folder etc. i was hoping the provider would...
1
9859
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, So the ever-lasting problem has remained until now - how to create a dynamic sitemap from information stored in a database. Microsoft's MSDN magazine covered how to do this using a...
1
1382
by: =?Utf-8?B?QWxleA==?= | last post by:
Is there any way to get around the fact that the sitemap doesnt allow duplicate urls in the xml?? I have many pages that get accessed depending on the clicking events and i was wondering if there...
7
1589
by: Mark B | last post by:
How do I have a SiteMap based on the output of a stored procedure? (I want to pass a @LanguageCode parameter to it so it will display the top Menu in the appropriate language).
0
7204
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
7091
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
7282
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
5586
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,...
1
5018
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...
0
4680
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...
0
3171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1516
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 ...
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.