Meta-Tag in frontend_render

Meta Tags can be injected at runtime via PHP (placed within …./frontend_render/ folder).

This is made possible by using the code set_meta($name=, $content=, $http_equiv=FALSE).

Available since v1.4.x r314
Google code: Render <meta> description and <meta> keyword

New function to set <meta> tags set_meta($name, $content[, bool $http_equiv=FALSE]) 
- if $http_equiv=FALSE then <meta name="$name".../>, $http_equiv=TRUE then <meta http-equiv="$name".../>
New frontend_render sample scripts to generate or enhance meta tags and script to render custom menu 
(link sitemap block as often used in footer of pages)


Forum: http://forum.phpwcms.org/viewtopic.php?p=119381#p119381 [DE]

Example:

// set_meta($name='', $content='', $http_equiv=FALSE)
 
set_meta('copyright', '2009 OG');     //<meta name="copyright" content="2009 OG" />
set_meta('imagetoolbar', 'no', true); //<meta http-equiv="imagetoolbar" content="no" />
set_meta('description', 'This is my description for just a test');
set_meta('robots', 'index,follow');
set_meta('Content-Language', 'en', TRUE);


Please have a lool too into the file template/inc_script/frontend_render/disabled/keywords.php.

</code>

english/phpwcms_replacer_rts/integrated-tags/meta-tag.txt · Last modified: 2010/01/03 13:28 by Knut Heermann (flip-flop)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0