Text macros and placeholders
Macros or placeholders are predefined words that can occur in a text. The system will automatically replace these words with other content. Macros are written in form of [macroname]
.
General macros
The following macros can be used for all texts in the CMP:
Macro |
Description |
|
Will be replaced by the CMP name from your settings |
|
Will be replaced by the cmp name from your settings with uppercase first character |
|
Will be replaced by the domain name of the current page the visitor is on (e.g. www.mysite.com) |
|
Will be replaced by the domain name of the current page the visitor is on with uppercase first character (e.g. Www.mysite.com) |
|
Will be replaced by the domain name of the current page the visitor is on (e.g. mysite.com) |
|
Will be replaced by the domain name of the current page the visitor is on with uppercase first character (e.g. Mysite.com) |
|
Will be replaced by the vendor name. Can only be used in texts for the preview layer in case of dynamic content blocking. |
|
Will be replaced by the vendor name of vendor with ID |
|
Will be replaced by a link to the privacy policy (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the Terms&Conditions (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the legal notice/imprint (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the cookies list (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the advanced settings page (Note: Ensure to enclose the link-text with |
[link=vendors] |
Will be replaced by a link to the advanced settings page > subpage vendors list (Note: Ensure to enclose the link-text with |
[link=vendorinfo] |
Will be replaced by a link to show details about a specific vendor. Note: The macro can only be used in texts of dynamic content blocking / preview elements. (Note: Ensure to enclose the link-text with |
[link=vendorinfo-XX] |
Will be replaced by a link show details about vendor with ID |
[/link] |
Ends an opened link (see above) |
[tooltip=...] |
Will enable the text to display a tooltip on mouseover/click. Example: Please note that HTML elements cannot be used within the tooltip. |
[/tooltip] |
Ends an opened tooltip (see above) |
[expand=...] |
Will enable the text to display further text on click. Example: |
[/expand] |
Ends an expand section (see above) |
[vendorcount] |
Will be replaced by the amount (number) of vendors in the vendorlist. |
Button macros
The following macros can only be used in the welcome text of the CMP:
Macro | Description |
[purposes-text] |
Will be replaced by a comma-separated list of purposes used in your CMP. Can only be used in the welcome text of the first layer. If used, the CMP will no longer display the normal purpose list on the first layer. |
[purposes-html] |
Will be replaced by a html-list (depending in list settings with or withour toggles) of purposes used in your CMP. Can only be used in the welcome text of the first layer. If used, the CMP will no longer display the normal purpose list on the first layer. |
[accept] and [accept-link]
|
Will be replaced by the accept all button / accept all link. If the macro is used in the text, the CMP will no longer display the accept button at the usual place. |
[reject] and [reject-link]
|
Will be replaced by the reject all button / reject all link. If the macro is used in the text, the CMP will no longer display the accept button at the usual place. |
[save] and [save-link]
|
Will be replaced by the save button / save link. If the macro is used in the text, the CMP will no longer display the save button at the usual place. |
[settings] and [settings-link]
|
Will be replaced by the settings button / settings link. If the macro is used in the text, the CMP will no longer display the settings button at the usual place. |
[langugageswitch] |
Will be replaced by the language switch button. If the macro is used in the CMP, the normal language switch will no longer be displayed at the usual place. |
Privacy policy
The following macros can only be used in a custom privacy policy text:
Macro | Description |
|
Will be replaced by a link to the privacy policy (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the Terms&Conditions (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the legal notice/imprint (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the cookies list (Note: Ensure to enclose the link-text with |
|
Will be replaced by a link to the advanced settings page (Note: Ensure to enclose the link-text with |
[link=vendors] |
Will be replaced by a link to the advanced settings page > subpage vendors list (Note: Ensure to enclose the link-text with |
[/link] |
Ends an opened link (see above) |
[tooltip=...] |
Will enable the text to display a tooltip on mouseover/click. Example: Please note that HTML elements cannot be used within the tooltip. |
[/tooltip] |
Ends an opened tooltip (see above) |
[expand=...] |
Will enable the text to display further text on click. Example: |
[/expand] |
Ends an expand section (see above) |
[vendorlistpolicy] |
Will be replaced by the vendorlist integration (expandable list of vendors). Can only be used if the custom privacy policy is integrated into the website and not used as inline privacy policy. |
[cookielistpolicy] |
Will be replaced by the table of cookies. Can only be used if the custom privacy policy is integrated into the website and not used as inline privacy policy. |
Own macros
You can also define own macros using the client side configuration options.