473,946 Members | 17,657 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 2430
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?du mmy=1

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

"James Page" <Ja*******@disc ussions.microso ft.comwrote in message
news:CB******** *************** ***********@mic rosoft.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?du mmy=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.microso ft.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
4015
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 said that I can't use & in the siteMapNode. How can I add the 2nd querystring in web.sitemap?
0
1419
by: Demetri | last post by:
Hello, I have built a web application with authentication modeled after the following video by Scott Guthrie: http://download.microsoft.com/download/8/3/6/836dd5f8-fa92-499f-8219-0d326f13bf18/hilo_masterpages-nav_FINAL.wmv So I have a site map, a treeview control on a page that binds to the sitemap. I only want certain items on there to be available for certain roles.
5
1992
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 get an error in Flash when it trys to open this file using standard Flash commands. However when I change the file name and command to 'Web.xml' it works. (it also works if I don't change the name, but run the swf in flash player and not via the...
1
3290
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 .htaccess the script’s result can be sent directly to “Google’s sitemap system” in a compatible format. With the help of this script the sitemap is generated instantly when the Google sitemap systems asks for it. This way you will always have the latest...
4
5791
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 and somehowI am getting an error:
5
15095
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 simply persist any changes i made, but it doesn't happen. e.g. selected.ParentNode.ChildNodes.Remove(selected); throws a NotSupportedException "Collection is read-only"
1
9898
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 custom-made class in C#, specific table architecture and a couple of database triggers (plus how to deal with caching on SQL Server 7 and 2000 - MSSQL 2K5 automatically deals with cache dependencies which handles new sitemap layout and/or content, which...
1
1405
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 was a simple way of doing the sitemap so that i can use these page multiple times in the site map
7
1620
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
10162
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
11153
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
11337
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
10687
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9886
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
8253
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
6112
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4941
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
3
3541
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.