FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

PresideCMS Extension: XML Sitemap

v1.1.2 Public

PresideCMS Extension: XML Sitemap Extension

This is an extension for PresideCMS that will create sitemap.xml for all active pages

##Scheduled task

If using PresideCMS 10.6.x and below, Schedule Task Extension will need to be installed before XML Sitemap Extension will be able to run (ask about this in the PresideCMS slack channel!).


The file, sitemap.xml will be generated by the scheduled task in your webroot. You should add a .gitignore rule to keep it out of your repository.


Install the extension to your application via either of the methods detailed below (Git submodule / CommandBox) and then enable the extension by opening up the Preside developer console and entering:

extension enable preside-ext-xml-sitemap
reload all

Git Submodule method

From the root of your application, type the following command:

git submodule add application/extensions/preside-ext-xml-sitemap

CommandBox (box.json) method

From the root of your application, type the following command:

box install pixl8/preside-ext-xml-sitemap#v1.1.0

Making your sitemap available to Google

There are two different ways to make your sitemap available to Google:


  • Insert the following line anywhere in your robots.txt file, specifying the path to your sitemap:




  • Add default value to sitemap_priority


  • Add ability to set sitemap changefreq on individual pages


  • Add ability to set sitemap priority on individual pages


  • Increase schedule task timeout
  • Don't use cache for page query
  • Build XML text manually for improved readabilty
  • Don't add .html to URL if page is homepage
  • Clarify checkLivePage() logic, improve var-scoping
  • Code style formatting


  • Use correct repo url in box.json


  • Fixing up publishing process


  • Boxifying the repo with automated publish


  • Ensures repeated process is reduces to improve the speed


  • couple of function name that was missed previously


  • Amendment to function names
  • Add missing arguemnt type in rebuildSitemap function
  • Update backend service to improve performance when building sitemap


  • Added instruction for submitting the sitemap / adding to robots.txt
  • Updated typo for "last" in variable "elemLastMod"
  • FIX for fileWrite throwing a error can't write down object of type [struct] to resource - always ensure the outut is a string / simple value
  • Add logger key exists checker before logging info and error message
  • Add logger info when sitemap task is being run


  • Add
  • Initial import of extension from Nelson's work

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
1.1.2 Jun 18 2019 01:58 AM Jun 18 2019 01:58 AM
Version History
1.1.1 Jun 03 2019 02:22 AM Jun 03 2019 02:22 AM
1.1.0 May 21 2019 04:46 AM May 21 2019 04:46 AM
1.0.10 Feb 17 2018 06:05 AM Feb 17 2018 06:05 AM
1.0.9 Jul 09 2017 05:51 AM Jul 09 2017 05:51 AM
1.0.8 Jul 09 2017 05:47 AM Jul 09 2017 05:47 AM


$ box install preside-ext-sitemap

No collaborators yet.
  • Jul 09 2017 05:47 AM
  • Jun 18 2019 01:58 AM
  • 776
  • 1,176
  • 11,316