[TYPO3] changing the <title> tag

Benjamin Mack bmack at kirix.com
Thu Oct 5 00:05:06 CEST 2006


Hey,

this should be what you want:
----------
#Title tag extras:
config.noPageTitle = 1
page.headerData.20 = TEXT
page.headerData.20.value = MyWebsiteName
page.headerData.20.wrap = <title>|:&nbsp;
page.headerData.30 = TEXT
page.headerData.30.field = title
page.headerData.40 = TEXT
page.headerData.40.field = subtitle
page.headerData.40.wrap = &nbsp;-&nbsp;|
page.headerData.40.if.isTrue.field = subtitle
page.headerData.50 = TEXT
page.headerData.50.value = </title>
--------

Enjoy!

greetings,
benni.
-SDG-


Rosina Bignall wrote:
> I found this post in the archives: (Apr 2, 2005)
> 
> ------
> 
> Rimas Cuplinskas cuplinskas at uni-bonn.de
> Sat Apr 2 18:11:20 CEST 2005
> 
> OK, my first plea for help!
> 
> By default, Typo3 generates the <title>-tag to include the Site name and 
> current page title (e.g. "MySite.com: CurrentPage".
> 
> I need to have the <title>-tag include the PATH to the current page as 
> well (just as in the URL when using RealURL).
> 
> Here's an example...
> 
> Backend hierarchy:
> -MySite.com
> ---Category1
> -----...
> -----Subcategory3
> --------CurrentPage
> 
> Present <title>-tag: "MySite.com: CurrentPage"
> 
> Preferred <title>-tag: "MySite.com: Category1 - Subcategory3 - CurrentPage"
> 
> How can I get this done??? Sorry if the solution is very simple, I 
> sincerely combed the Web, studied TSref, and searched the List 
> archives... alas to no avail :(
> 
> Thanks in advance!
> Rimas
> 
> -----
> 
> I found another post stating that it was answered in t.german.  I can 
> read enough german I'd probably understand it, but I couldn't find it.
> 
> So, does anyone have a solution to doing this?  I want to do something 
> similar, but rather simpler:
> 
> <title> MySite.com: Page title - Page subtitle </title>
> 
> Can someone tell me a way to do this?
> 
> I did find the solution for making it be the subtitle or the title, but 
> not a way to have both.
> 
> thanks
> Rosina
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



More information about the TYPO3-english mailing list