addedValueMacros.demoModeLink
Syntax
{addedValueMacros.demoModeLink(lineText, subPath, whatTarget=nil, anchor=nil, class=nil, title=nil, accesskey=nil, hreflang=nil, tabindex=nil)}
- lineText - a string, which will be the text of the link.
- subpath (optional, empty) - a string specifying a subpath within the addedValues url directory.
- whatTarget - optional, value of the target attribute for the link.
- anchor - optional, value of the anchor attribute for the link.
- class - optional, value of the class attribute for the link.
- title - optional, value of the title attribute for the link.
- accessKey - optional, value of the accesskey attribute for the link.
- hrefLang - optional, value of the hreflang attribute for the link.
- tabindex - optional, value of the tabindex attribute for the link.
Examples
| {addedValueMacros.demoModeLink("Look at triggers", "triggers")} |
Semantics
If the current website is in demonstration mode, returns a link - an a tag - to a page of the current website. If any of the optional parameters whatTarget, anchor, title, title, accesKey, hrefLang, tabindex are present they are used to build the link. If the site is not in demonstration mode, demoModeLink returns an empty string.