How to use SitemapMgr

  Previous article Next article  

The SitemapMgr module creates page and module sitemap, robots.txt and humans.txt files.
Ready to use templates for several modules included in the Design Manager like News, CGBlog, Products, etc.

  How to use

1. After installation you will find the SitemapMgr module in the Site Admin menu.

2. The install process will automatically create:


Pre-existing humans.txt and robots.txt files are not overwritten, but the content is re-used in the module!

3. The humans.txt file is only created after you update the content and save it... If you don't want to use this feature after all, just empty the content and save... The file will be deleted.

4. By default there is a sitemap file created for content pages. In the tab "Sitemaps" you can create more sitemaps.

5. An internal cron job will recreate the sitemaps every 24 hour.

6. In the website root you will find the sitemap index file ( ). It is a sitemap for sitemaps. Submit *only* this file to Bing, Google, or... No need to submit all individual sitemaps!

Permissive Smarty
In order to calculate the change frequenty the SitemapMgr module uses a PHP function within Smarty.
You need to add the following line to your config.php file to let it work!

   $config['permissive_smarty'] = 1;

If not you get the error message: "PHP function xxx not allowed by security setting"

 Know issues and fixes

 Include all pages in the sitemap

By default only content pages that are in the navigation are added to the sitemap. If you want to have all pages included, add the "show_all=1" parameter in the Navigator tag in the SitemapMgr Admin page.
You can still decide what page is included or not using the "searchable" checkbox at option tab in Content Manager.

{Navigator template='cms_template:Sitemap Pages' show_all=1}

 Protocol less URIs

By default CMS Made Simple release 2.2 generated so called protocol less URIs. These are without http or https. The reason is to prevent mixed content with SSL-secured websites.

But in sitemaps they should be added...

Simple fix, add to your website's config.php file:

$config['root_url'] = '';

And afterwards regenerate your sitemaps!

 Additional sitemap templates

CGCalendar module

Module tag for CGCalendar module:

{CGCalendar display='upcominglist' listtemplate='cms_template:Sitemap CGCalendar'}

Uploads module

Create a new summary template in the Uploads module Admin page, named "Sitemap Uploads" and copy-paste this content:

<urlset xmlns="">
{foreach from=$items item=entry}

Module tag for Uploads module:

{Uploads template='Sitemap Uploads' count=1000}

  Working example

Buy Me A Coffee

  Comment Form


Click here to open the form



Buy Me A Coffee

CMS Made Simple - Tutorials, Tips and Tricks - CMSMS

How to use SitemapMgr

  Article optimized for CMSMS 2.x

  Last tested in: CMSMS 2.2.19
  Last updated: 26-02-2022
  Comments: 30

Buy Me A Coffee


Ads help me to help you! Thanks!

Ads help me to help you! Buy products from these advertisers!