How to build a sitemap using Sitecore

狂风中的少年 提交于 2019-11-30 05:14:00

问题


I need to create a Sitemap for a Sitecore website. How can I do this?


回答1:


If you're after a sitemap page to list the pages on your site you should try the Shared Source module 'Sitemap'. http://marketplace.sitecore.net/en/Modules/Sitemap.aspx

However, if you're after a sitemap for search engine optimization, use Sitemap XML. http://marketplace.sitecore.net/en/Modules/Sitemap_XML.aspx




回答2:


It depends on what you need as a Sitemap. Do you want an XML sitemap that goes to Google? Or do you want a sitemap that shows the structure of your website?

I'd suggest looking at the Sitecore marketplace (http://marketplace.sitecore.net/SearchResults#query=sitemap), possibly downloading the source code to see how it's done. I think there's an example for both.

Otherwise, you can also create your own, but we'll need some more information - do you want to write it in XSLT or using codebehind such as C#?



来源:https://stackoverflow.com/questions/14956383/how-to-build-a-sitemap-using-sitecore

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