Personal tools
Tags
From CMSMS
Adding a parameter to a tag/plugin
Many tags/plugins are developed with default values that determine the behavior of the tag. However most tags also have optional parameters that can further refine the behavior of the tag/plugin.
For Instance, there is a plugin called "tagcloud". To add a parameter to a plugin like TagCloud, you do this...
Insert the smarty tag for the plugin into your template at the location you want the tag to show up on your web page. So for "tagcloud" you would insert the following code into the template where you want the tag cloud to appear.
{tagcloud}
Now if you want to also use parameters to modify the default behavior of the tag, you add them one after another in the tag that you just placed into your template. For instance, if you want to create a blacklist of words that will not show up in your tag cloud, then you enter the name of the parameter followed by a comma delimited list of the blacklisted words...
{tagcloud blacklist="cms,template,code,cmsms"}
If you wanted to modify more than one parameter, you would just add them to what you've already done, making sure you seperate each new parameter from the pervious parameter by a space..
So if you want to add a blacklist and also limit the number of tags that show in the cloud (the default is 30) you would use two parameters to do this, the "blacklist" parameter and the "max_words" parameter.
{tagcloud blacklist="cms,template,code,cmsms" max_words="20"}
