The Pro version of Content Templater comes with several data tags that you can use in your template, that will be inserted automatically in the content the moment you insert the template.
Note that these data tags will be replaced with the actual value when inserted in the article. They will not remain dynamic when you change the article data itself. If you need to place dynamic tags that do not get hardcoded into the article text, you can use ReReplacer instead.
Here is a complete overview of all of the available Dara Tags and their syntax:
Input Syntax | Description | Output Example |
---|---|---|
[[user:id]] |
The ID number of the current logged-in user. * | 465 |
[[user:username]] |
The login name of the current logged-in user. * | peter |
[[user:name]] |
The name of the current logged-in user. * | Peter van Westen |
[[user:misc]] |
Any other available data field from the current logged-in user or the connected contact. * |
I'll sell you good copper, which is cheaper... well, here it is. |
[[article:id]] |
The ID number of the current article. ** | 123 |
[[article:title]] |
The title of the current article. ** | My Article |
[[article:alias]] |
Any other available data field from the current article. ** | my-article |
[[article:custom-field]] |
The output of any custom field from the current article. ** | Value of my Custom Field |
[[article:custom-field:value]] |
The raw value of any custom field from the current article. ** | Value of my Custom Field |
[[date:%A, %d %B %Y]] [[date:%Y-%m-%d]] |
Date using php strftime() format. | Monday, 18 November 2024 2024-11-18 |
[[random:0-100]] [[random:1000-9999]] |
This places a random number within the given range. | 83 1428 |
[[text:MY_STRING]] |
A language string to translate into text (based on the active language). | My string! |
[[template:...]] |
Content of another Content Templater template. Example: [[template:2]] or [[template:My second template]] |
(the content of given template) |
* The user data tags place data from the logged-in user (the user that chooses the template).
** The article data tags are only available when editing an existing article. When creating a new article, you need to first save the article before applying the template.