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!).

##.gitignore

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.

Installation

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 https://github.com/pixl8/preside-ext-xml-sitemap.git 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:

OR

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

    Sitemap: http://mydomain.com/sitemap.xml

Changelog

v1.1.2

  • Add default value to sitemap_priority

v1.1.1

  • Add ability to set sitemap changefreq on individual pages

v1.1.0

  • Add ability to set sitemap priority on individual pages

v1.0.10

  • 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

v1.0.9

  • Use correct repo url in box.json

v1.0.8

  • Fixing up publishing process

v1.0.7

  • Boxifying the repo with automated publish

v1.0.6

  • Ensures repeated process is reduces to improve the speed

v1.0.5

  • couple of function name that was missed previously

v1.0.4

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

v1.0.3

  • Added instruction for submitting the sitemap / adding to robots.txt
  • Updated typo for "last" in variable "elemLastMod"
  • FIX for fileWrite throwing a java.io.IOException 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

v1.0.1

  • Add README.md
  • 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
Current
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

 

No collaborators yet.
  • Jul 09 2017 05:47 AM
  • Jun 18 2019 01:58 AM
  • 585
  • 701
  • 7750