网站地图生成
我想知道我是否可能以错误的方式处理此问题并正在寻求一些指导。
我在我的网站上创建了一个站点地图数据源,然后创建了一个站点地图供其链接。但是,当我创建站点地图时,看起来我需要输入所有页面详细信息。有没有某种方法可以自动执行此操作(或至少开始执行)?这是它默认生成的:
<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>
例如,有没有办法让它只列出站点中同一级别的所有页面或其他内容?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据这个.NET论坛问题,没有: http://forums.asp.net/t/ 1175101.aspx
但是,他们确实建议 CodeProject.com 上有几个项目可以帮助您:
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
祝你好运!
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!