Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I don't know how Web.sitemap is used, but there is an incorrect url <siteMapNode url="~/Members/MyAccount" title="Account"> This should be MyOrders instead of MyAccount MyAccount throws a 404.
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Web.sitemap shows the general navigation of the store pages. It has been for creating breadcrumbs mainly under MyAccount section in AbleCommerce Gold. In the ac9, this file is not being used since there are no breadcrumbs under the account section.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 7/1/2022(UTC) Posts: 71
Thanks: 5 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: nadeem Web.sitemap shows the general navigation of the store pages. It has been for creating breadcrumbs mainly under MyAccount section in AbleCommerce Gold. In the ac9, this file is not being used since there are no breadcrumbs under the account section. Hi Nadeem, based on this post, I deleted our web.sitemap. Then when I found how to create the sitemap.xml, and it failed, I found this error in the logs: --- Exception: The file /Web.sitemap required by XmlSiteMapProvider does not exist. Stack Trace: at System.Web.XmlSiteMapProvider.CheckSiteMapFileExists() at System.Web.XmlSiteMapProvider.GetConfigDocument() at System.Web.XmlSiteMapProvider.BuildSiteMap() at System.Web.XmlSiteMapProvider.get_RootNode() at System.Web.SiteMap.get_RootNode() at AbleCommerce.Code.CommonSiteMapProvider.GetSiteMapItems(SiteMapOptions options) at AbleCommerce.Code.CommonSiteMapProvider.DoSiteMap(SiteMapOptions options, Boolean compress, List`1& messages) at [and more!] --- so the web.sitemap is required? Can you shed some light on this please? Should I manually update the web.sitemap file? Or is this an obsolete code reference that fails hard if the file isn't there? Thanks, Charles
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Yes, the sitemap provider expects the Web.sitemap file on the website root. So you don't need to delete this. And since the sitemap data is generated dynamically, you don't need to update the file manually. If you just keep the empty file (with base xml nodes), it will still generate the sitemap without any issue. For example, the only the following info in Web.sitemp will still work Code:<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode />
</siteMap>
The bottom line is, the file should be present at website root.
|
1 user thanked nadeem for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close