[TYPO3-core] RFC #14322 : Feature: Include robots noindex meta tag in typo3 backend, especially login page

Steffen Kamper info at sk-typo3.de
Thu Jun 24 09:43:33 CEST 2010


Hi Ernesto,

Ernesto Baschny [cron IT] schrieb:
> 
> My suggestion:
> 
> 	$pageRenderer->addMetaTag($name, $content, $scheme = '', $httpEquiv =
> '', $otherAttributes = array());
> 
> As name="" and content="" are the most commonly used attributes for a
> meta tag. $scheme is the next most common one (see dublin core
> definitions) and $httpEquiv as the last common attribute. In
> $otherAttributes on could have even other stuff (like "lang=", "id=" or
> other common XHTML attributes).
> 
> As addMetaTag() has been public since 4.3, it has to have a different
> name or the same method has to cope with both old (only one parametr)
> and new way (e.g. make $content also optional and if $content=='', use
> $name as the whole meta tag, and log to deprecation log).
> 
> Then have a addRobots helper which can be used by the template.php for
> the backend:
> 
> function addRobots($content='noindex,norobots') {
> 	$this->addMetaTag('robots', $content);
> }
> 

yeah, +1. For compatibility we can compare $name with '<meta' so we can 
use the same method (using $content='' as optional too).
Feel free to come with a patch, or lets do it together at Elmshorn :)

vg Steffen


More information about the TYPO3-team-core mailing list