[SOLVED] Adding metatags on Smarty template based on tracker item (plugin List)
Hello,
I display trackeritems using a plugin List and smarty template.
Adding to this prefix alias allow me to display each item dynamically in the template.
I need to change also the metatags for each page displayed accordingly to the item. (title, description and keywords)
I added metatag wiki plugin inside the template foreach:
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}
While this work, I wonder if there is not a simpler / more elegant way ?