Personal tools
User Handbook/Admin Panel/Extensions/Tags
From CMSMS
Contents |
Using a tag
Just put it where you want in a template like <title>{title}</title>.
Tag parameters
Many tags accept parameters, which allow you to refine their output; for example: {last_modified_by} would return the ID of the last user to modify a page; {last_modified_by format='fullname'} would output that user's full name instead.
Acceptable parameters will be listed on the tag's help page.
Using a tag value as another tag's parameter
If you wish to use the value of the output of one tag as a parameter in another, use Smarty's {capture} function to assign the value to a variable:
{capture assign='tmp'}{title}{/capture}
Then call the variable in the parameter of the second tag:
{news category=$tmp}
Installing a tag
To install a new tag, put the function.tagname.php file into your /plugins directory. When you refresh the Tags page in the CMS, the new tag will be shown.
Occasionally, tag installation will require extra steps; see PiSearch, for example. In this case, read the instructions supplied with the new tag.
