PluginList and Metatags - Search Engine


The result returned by a pluginList can be a list of objects as well as a unique object. Dynamic pages can be that way created and populated using another Tiki object content. A typical example is to display trackeritem fields values using a template. The pluginList and other Tiki tools allow to populate Metatags that will be used by Search Engine robots to index your pages.

There are a few ways to add metatags to you pluginList generated content.

Using the FORMAT or DISPLAY control block

From your pluginList parameters, inside the relevant FORMAT block or the DISPLAY block you can set dynamically 2 commonly used metatags. Set the title using pagetitle="y" and set the description by adding the parameter pagedescription="y". (List of all parameters)

Copy to clipboard
{FORMAT(name="basetitle")}{display name="tracker_field_baseTitle" pagetitle="y"}{FORMAT} {FORMAT(name="description")}{display name="tracker_field_baseDescription" pagedescription="y"}{FORMAT}

Using the metatag plugin in a Smarty template

There are many more metatags and while the method mentioned above helps in most case you may want to set advanced metatags like image for social network, authors, etc.

Using a pluginList and smarty template allow to use any Tiki plugin including the Plugin MetaTag. Using this plugin in your template you will be able to set any metatag you need.

Copy to clipboard
{wikiplugin _name="metatag" name="description" content="{$row.basecontent|truncate:200}"}{/wikiplugin} {wikiplugin _name="metatag" name="title" content="{$row.title}"}{/wikiplugin} {wikiplugin _name="metatag" name="keywords" content="{$row.basetags}"}{/wikiplugin}