[TYPO3-core] RFC: #14860: Pagerenderer - use better method for adding meta tags
Steffen Kamper
info at sk-typo3.de
Fri Jun 25 01:20:21 CEST 2010
Hi,
This is an SVN patch request.
Type: Feature
Bugtracker references:
http://bugs.typo3.org/view.php?id=14860
Branches:
trunk
atm meta tags are added with complete html tag.
The better method would be to add tags with a name and the content.
Additional you can add additional parameters as key/value pairs in an array.
There is an exception: if in this additional parameters a pair exists
with key "http-equiv", it replaces the name.
Examples:
$pageRenderer->addMetaTag('author', 'John Doe');
=>
<meta name="author" content="John Doe" />
$pageRenderer->addMetaTag('robots', 'noindex');
=>
<meta name="robots" content="noindex" />
$pageRenderer->addMetaTag('', '5; URL=http://www.example.org/',
array('http-equiv' => 'refresh');
=>
<meta http-equiv="refresh" content="5; URL=http://www.example.org/" />
$pageRenderer->addMetaTag('DC.format', 'text/html', array('scheme' =>
'DCTERMS.IMT');
=>
<meta name="DC.format" content="text/html" scheme="DCTERMS.IMT">
vg Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 14860.diff
Type: text/x-diff
Size: 1486 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100625/24645b2d/attachment-0001.diff>
More information about the TYPO3-team-core
mailing list