Best Way to Display Site Map?

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Best Way to Display Site Map?

Post by drollins » Tue Nov 20, 2007 3:55 am

I want to simply display the site map when the user clicks a link from the footer.

I am not sure how to go about this. I see web.sitemap and have read up on using this file as a datasource etc.

Can someone point me in the right direction here. What is the best way to accomplish this?

I could hack something in but am really looking for best practices as I get my feet wet with this product.

Thanks

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Tue Dec 25, 2007 3:01 am

OK - so no one actually knows how to do this?
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Sat Dec 29, 2007 10:07 am

Isn't it a standard XML sitemap file that can be used as a datasource to the .Net sitemap control?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Fri Jan 04, 2008 5:15 pm

Copy and paste this code into a new file in your store folder. Make sure to name it with a .aspx extension. Hit the file directly with the URL. Make sure you have a web.sitemap file in your store folder before running the new page.

I think this is what you are looking for...

Code: Select all

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ASP:SITEMAPDATASOURCE ID="SiteMapDataSource1" RUNAT="server" />
    
    </div>
        <ASP:TREEVIEW ID="TreeView1" RUNAT="server" DATASOURCEID="SiteMapDataSource1">
        </ASP:TREEVIEW>
    </form>
</body>
</html>
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

drollins
Lieutenant (LT)
Lieutenant (LT)
Posts: 79
Joined: Thu Oct 04, 2007 9:23 am
Location: West Hartford, CT
Contact:

Post by drollins » Tue Jan 08, 2008 2:03 am

Ahhhh.... yes... I see it all so clearly now :)

You rock!

Thank you!
David Rollins
SDC Solutions, Inc.
Information Management, Web Site and Intranet Solutions
http://www.sdcsol.com
http://www.rhinogift.com

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Tue Jan 08, 2008 4:44 am

You're welcome. I'm thinking about making it a user control and selling it for millions.

Guess I shouldn't have posted my source code now that I think about it :cry:
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply