Home
>
Nav (Express)
> tag
tag
(optional)
Allows you to send most standard text-formatting HTML tags to a module or an element in the module.
Design Notes The entire tag must be enclosed in one set of quotes, with no other double-quotes or pound signs inside the tag.
For example, you could use the “font” tag as follows:
tag=”font face=arial color=ff0000 size=2”
If you've defined styles - either within <style> tags in your template, or linked from a separate CSS file - you can use CSS attributes such as style and class here as well.
For example, if you have this code in your template or in a linked CSS file...
.myclass { font: bold 12pt arial; }
...you can incorporate that class in a tag attribute like this...
tag="p class=myclass"
Multiple tags in the same attribute
Multiple tags can be sent through this attribute by separating them with a pipe (|). For example, text that has a special font designated can also be bolded with the following syntax:
tag="font face=arial size=2 color=ff0000|b"
Separating elements from each other
You can use the tag attributes to define how different elements in a PickMenu or other complex module are displayed. For example, the default teasertag value for the PickMenu is br, which inserts a line break before the teaser. You may wish to keep this line break while adding your formatting to the teaser. To do this, use syntax like this:
teasertag="br|font size=1"
Including static text within the display
You can specify static text to be included before a dynamic element by putting the text inside single quotes within the element's tag attribute. For example, you could use a hyphen in leu of a page break between the label and teaser like this:
teasertag="' - ', font size=1"
|