[TYPO3-english] Modifying <title>
Dawid Pacholczyk
dpacholczyk at gmail.com
Thu May 14 20:31:40 CEST 2009
page.headerData {
10 = CONTENT
10.table = tx_mhbranchenbuch_firmen
10.select.pidInList = 27
10.select.andWhere.data = GPvar:tx_mhbranchenbuch_pi1|detail
10.select.andWhere.wrap = uid=|
10.renderObj = TEXT
# 10.renderObj.data = debug:data
10.renderObj.field = keywords
10.renderObj.wrap = <meta name="keywords" content="|" />
10.if.isTrue.data = GPvar:tx_mhbranchenbuch_pi1|detail
20 = CONTENT
20.table = tx_mhbranchenbuch_firmen
20.select.pidInList = 27
20.select.andWhere.data = GPvar:tx_mhbranchenbuch_pi1|detail
20.select.andWhere.wrap = uid=|
20.renderObj = TEXT
# 10.renderObj.data = debug:data
20.renderObj.field = firma
20.renderObj.wrap = <title>|</title>
20.if.isTrue.data = GPvar:tx_mhbranchenbuch_pi1|detail
30 = TEXT
30.data = page:title
30.wrap = <title>|</title>
30.if.isFalse.data = GPvar:tx_mhbranchenbuch_pi1|detail
40 = TEXT
40.data = page:title
40.wrap = <title>|</title>
40.if.equals = 12
}
look at this code at change it for your purpous. I`m taking keywords
and titles from diffrent tables and put them to the site.
I hope it will help you
Best regards
Dawid Pacholczyk
2009/5/14 Jan Bednarik <info at bednarik.org>:
> You need to remove the default title:
>
> config.noPageTitle = 1
> - it may be a bit different, I don't rememeber for sure, check TSRef
>
> and then create your own:
>
> page.headerData.100 = TEXT
> page.headerData {
> wrap = <title>|</title>
> data = ...
> value = ...
> field = ...
> whatever = ...
> }
>
> --
> Jan Bednarik
> www.bednarik.org - web about Typo3 in czech
> _______________________________________________
> 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