Skip to content

Sitemap for Developers (v1.x)

Lukas Gerbenis edited this page Dec 9, 2015 · 2 revisions

The following information will help you enhance sitemap functionality in Better CMS.

How to Add Additional Data to Sitemap Node

Let's say you are implementing some gorgeous MegaMenu for your awesome website and you need some additional date to be added to sitemap node. For example: some CSS class for a different menu item styling.

In the CMS configuration file cms.config, set enableMacros to true:

<cms ... enableMacros="true">

During sitemap node editing (in "Site Settings"), the new field will appear. Here it is possible to input specific data you need for a specific functionality. Every thing you add will be instantly available via API methods (Sitemap API macro field).

Later, if you do not want to show this field in the sitemap, just disable it in the configuration file (this configuration option affects only macro field visibility in "Site Settings" sitemap editing).

Clone this wiki locally
You can’t perform that action at this time.