Skip to content
hertsch edited this page May 30, 2014 · 8 revisions

The TemplateTools are also providing a couple of kitCommands for the usage within the WYSIWYG editor and also within Add-ons of your Content Management System. kitCommands are like Droplets but smarter and more powerful.

The TemplateTools will install the following kitCommands:

###~~ cms_modified_by ~~

This kitCommand will return the displayname of the user who has last changed any page in the Content Management System (CMS), i.e.:

Ralf Hertsch

Please use

~~ cms_modified_by help[] ~~

to view the helpfile for ~~ cms_modified_by ~~ and get more information about the usage and supported parameters.

###~~ cms_modified_when ~~

This kitCommand will return a formatted and localized date/time stamp for the last change of any page in the Content Management System (CMS), i.e.:

2014-05-16 13:02 a

in English language or

16.05.2014 13:02

in German language.

Please use

~~ cms_modified_when help[] ~~

to view the helpfile for ~~ cms_modified_when ~~ and get more information for the usage and supported parameters.

###~~ google_map ~~

This kitCommand will show a Google Map for the given location.

Please use

~~ google_map help[] ~~

to view the helpfile for ~~ google_map ~~ and get more information for the usage and supported parameters.

###~~ page_modified_by ~~

This kitCommand will return the displayname of the user who has last changed the current page, i.e.

Ralf Hertsch

Please use

~~ page_modified_by help[] ~~

to view the helpfile for ~~ page_modified_by ~~ and get more information about the usage and supported parameters.

###~~ page_modified_when ~~

This kitCommand will return a formatted and localized date/time stamp for the current page, i.e.:

2014-05-16 13:02 a

for a page in English language or

16.05.2014 13:02

for a page in German language (specified in the page settings).

Please use

~~ page_modified_when help[] ~~

to view the helpfile for ~~ page_modified_when ~~ and get more information for the usage and supported parameters.

###~~ wysiwyg_content ~~

This kitCommand will return the WYSIWYG content for the given SECTION_ID:

~~ wysiwyg_content section_id[189] ~~

You can find the SECTION_ID at the top of the editor for the WYSIWYG section:

Find the WYSIWYG section ID

use the kitCommand to show the content of this section at any other page:

~~ wysiwyg_content ~~ example

Please use

~~ wysiwyg_content help[] ~~

to view the helpfile for ~~ wysiwyg_content ~~ and get more information for the usage and supported parameters.

Pattern | Examples

Clone this wiki locally