[TYPO3-english] How to position a custom page title tag near the top of my head section?

Stephen Bungert stephen at bungert.co.uk
Thu Jul 15 20:19:45 CEST 2010


Thanks for this info, it's very interesting and something I had no idea 
about!

On 15.07.2010 19:58, François Suter wrote:
> Hi Harm,
>
>> Different SEO tools suggest that placing your <title> tag way up in your
>> HTML it has some appreciable effect.
>
> Since TYPO3 4.3 there's a HTML that drives the global page rendering.
> This is unfortunately badly documented (mostly because we have no good
> place where to store such an information at the moment).
>
> The template is used by the page rendering class (t3lib_pageRenderer)
> and defines where the major elements are to be placed. The default
> template for the frontend is located in
> typo3/sysext/cms/tslib/templates/tslib_page_frontend.html and contains
> the following:
>
> ###XMLPROLOG_DOCTYPE###
> ###HTMLTAG###
> ###HEADTAG###
>
> ###METACHARSET###
> ###INLINECOMMENT###
>
> ###BASEURL###
> ###SHORTCUT###
> ###TITLE###
> ###META###
>
> ###CSS_INCLUDE###
> ###CSS_INLINE###
>
> ###JS_LIBS###
> ###JS_INCLUDE###
> ###JS_INLINE###
>
> ###HEADERDATA###
> </head>
> ###BODY###
> ###JS_LIBS_FOOTER###
> ###JS_INCLUDE_FOOTER###
> ###JS_INLINE_FOOTER###
> ###FOOTERDATA###
> </body>
> </html>
>
> So the solution to your problem would be to copy that template file
> somewhere in your local install, point to it using TypoScript, e.g.
>
> config.pageRendererTemplateFile = path/to/the/file/mytemplate.html
>
> and move the ###TITLE### marker around.
>
> BTW config.pageTitleFirst is not what it may seem to be. By default
> TYPO3 will output the title like:
>
> <title>Site title: Page title</title>
>
> With config.pageTitleFirst = 1 you get:
>
> <title>Page title: Site title</title>
>
> HTH
>



More information about the TYPO3-english mailing list