web.sitemap generation

人走茶凉 提交于 2019-12-11 05:38:01

问题


I'm wondering if I may be going about this the wrong way and am looking for some guidance.

I've created a site map datasource on my website and I then created a site map for it to link to. However, when I create the site map, it looks like I need to enter all the page details. Is there some way of automating this (or at least getting it started)? This is what it generated by default:

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode url="" title=""  description="">
    <siteMapNode url="" title=""  description="" />
    <siteMapNode url="" title=""  description="" />
  </siteMapNode>
</siteMap>

For example, is there a way to get it to just list all the pages in the site at the same level or something?


回答1:


According to this .NET forum question, no: http://forums.asp.net/t/1175101.aspx

However, they do suggest that there are several projects on CodeProject.com that may help you:

http://www.codeproject.com/useritems/DynamicSitemapASPNET2.asp
http://www.codeproject.com/useritems/ScionSiteMapProvider.asp
http://www.codeproject.com/aspnet/MutlipleSiteMap.asp
http://www.codeproject.com/useritems/Dynamic_Sitemap.asp

Good luck!



来源:https://stackoverflow.com/questions/3469140/web-sitemap-generation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!