12.3 Variable Modifiers ↑
12.3.16 Linked Tags - G
This modifer is meant to be used specifically with the Tags field.
This modifier is similar to Linked Tags - Z, but works slightly differently.
Linked Tags - G works well when each tag will have a separate page listing posts/notes containing that tag.
Linked Tags - Z works best when each tag will have a separate section within a single shared page.
Each tag found in the variable will be made into a link, linking to tagfile.html.
The file name will be derived from the tag, converting upper-case characters to lower-case, replacing spaces with dashes, and so forth.
Up to three positional parameters may be specified following the modifier of g
, with semicolons separating/terminating the three.
The path to the linked tag file, starting from the web root (see Template Module Parameters for more info). .
A class name to be applied to the generated anchor tags, for styling purposes.
A separator to be used between tags, if there are more than one. This defaults to a comma followed by a space.
Consider the following example.
=$tags>ags/;tag-class; | $=
Where:
tags
is the variable name;tags/
is the path, starting from the web root;tag-class
is the class to be applied to each link (<a
) HTML tag.- ‘
|
’ is the separator to be used between the links, for multiple tags.
Next: HTML - H