
April 23, 2008 Edit: This mod is for Build A Niche Store (BANS) sites that are v1 or v2 only. BANS v3 includes a sitemap so there is no need to add this mod to v3+ sites.
You can help visitors find what they want or get around your site by adding a sitemap. BANS forum member Mark (aka meetmydomains) created a great sitemap that automatically updates whenever you add a new store page. It does not, however, show content pages.
Unlike the dynamic sitemap, this sitemap is meant to be displayed from within your site and viewed by people. It will also help spiders index your site. It is ok to use this mod and the dynamic sitemap mod by Webmogul together.
You can view Mark’s instructions for this mod at http://www.thenichestorebuilder.com/build-a-niche-store-sitemap-mod-complete-version.htm.
| Note: If you added this mod to your v2 store and then updated the store to v3 then you need to read How to Redirect Your Old Sitemap to Your New Sitemap. | |
My instructions to add Mark’s sitemap to your site: | |
Step One | |
| Go to FrontControl.php (click here if you don’t know how to do this). | |
| Save a copy of the original code (click here for instructions on how to do this). | |
| Copy and paste the contents of frontcontrol-changes.txt directly ABOVE the function getMainPageParent(){ code. | |
| Save changes and view site for errors. | |
| Step Two | |
| Log in to your site’s Admin and click the ‘Content Pages‘ tab and ‘Create Content Page‘ link. | |
| Create your new content page and name it something like, “My-Niche-Store-Sitemap.” If you like you can add some text to the Page Content area but this is optional. | |
| Save page. | |
Step Three | |
| Click the ‘Template‘ tab and ‘style.css‘ link for the template you are using. | |
| Save a copy of the original code (click here for instructions on how to do this). | |
| Copy and paste the contents of stylescss-changes.txt to the bottom of styles.css directly BELOW the /* Miscellaneous End */ tag. | |
| Save changes and view site for errors. | |
| Step Four | |
| Note: Skip this step if you did the Permalink or RSS Content Page mods. This is a duplication of code used in these mods and adding it again will cause a fatal error on your site. | |
| Click the ‘header.php‘ link for the template you are using. | |
| Copy and paste the contents of header-changes-01.txt to header.php directly ABOVE the </head> tag. | |
| Save changes and view site for errors. | |
Step Five | |
| Decide if you want any text added to your Sitemap content page (added via the Page Content section) to be displayed above the sitemap results or below them: | |
| |
| Step Six | |
| Copy the contents of header-changes-02.txt and paste it to one of the following: | |
| |
| Change the following bit of code before you save your changes: | |
| |
| Save changes and view site for errors. | |
done | |
Rochelle
[...] sitemap is strictly for search engines and is not meant to be viewed by people. You can also add Mark’s sitemap, which is meant for people. It is ok to have both this dynamic sitemap and Mark’s sitemap on [...]
[...] Mark’s Sitemap [...]
[...] Skip this step if you did the Permalink mod. This is a duplication of code used in step four of the Permalink mod [...]
[...] Skip this step if you did the Permalink mod. This is a duplication of code used in step four of the Permalink mod [...]
[...] permalink 03.txt and save your changes. This code is duplicate code from the RSS Content Page and Mark’s Sitemap mods and is not needed [...]
[...] How to Add Mark’s Sitemap to Your Site [...]
[...] you added the How to Add Mark’s Sitemap to Your Site mod to a v2 store, then updated the store to v3, then you will need to add the mod detailed in this [...]