Header
Header copied to clipboard
Add macros for changing meta information from templates
Create HeaderCollector as service for collecting information about HTML header.
Add macros {addTitle}, {setTitle}, {addDescription}, {setDescription}, {addKeywords}, {setKeywords}, {setRobots}. This macros save data's to HeaderCollector and HeaderComponent only write data's from HeaderCollector and AssetsCollector.
This allow use this template:
{* set header *}
{addTitle}{$row->title}{/addTitle}
{setDescription}{$row->description}{/setDescription}
{* ... *}
{* and other *}
<h1>{$row->title}</h1>
<div>{$row->description}</div>
{$row->text}