Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macros for changing meta information from templates #4

Open
romanmatyus opened this issue Nov 22, 2012 · 0 comments
Open

Add macros for changing meta information from templates #4

romanmatyus opened this issue Nov 22, 2012 · 0 comments

Comments

@romanmatyus
Copy link
Owner

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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant