Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Building dynamic sitemaps

Status
Not open for further replies.

Peppi

Programmer
Apr 9, 2001
205
CA
Hi,

This is a little different. I need to create a sitemap for a single page of my web site. This page will contain user-dependent data. It is structured in the following manner:

-Presentation
-Placeholder
-Play List
-Video
-Image

The sitemap will be used in both a treeview and in a breadcrumb. Since this structure is entirely dependent on the current user, it needs to be built each time the page is visited. As I don't have much experience with sitemaps, can someone tell me if this is possible and what the best way to go about doing this is?

Thx.
 
You'd have to store the data in a database table and reconstruct the tree when the user logs in.
 
Then how can I get the breadcrumb to work? Don't I need to somehow build a sitemap for a breadcrumb?
 
Not sure, I never used the sitemappath object. I'm sure you can find exampls on-line
 
you can always build your own. find the node that the current user is on and walk up the tree. using these values build your breadcrumb trail.

If your menu follows the directory structure you can use that as well.

you could also build a custom site map provider which queries the database. then the breadcrumbs, menu and other hierarchal controls will work as usual. for example google custom sitemap provider.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top