[TYPO3-english] tt_products: overwrite page's title with product title

Victor Livakovsky v-tyok at mail.ru
Tue Jan 3 12:30:31 CET 2012


Hi.

> Here is my TypoScript:
> page.headerData.10 = TEXT
> page.headerData.10 {
>    field = ###PRODUCT_TITLE###
>    noTrimWrap = |<title>|</title>|
>    stdWrap.htmlSpecialChars = 1
> }

I'm sure, there is no field  ###PRODUCT_TITLE### in current cObject. You 
should fetch the title from tt_products table yourself with f.e. RECORDS 
cObject with a code, like this:
page.headerData.10 = RECORDS
page.headerData.10 {
   # next line may be different, because I don't know, how tt_products 
passes record's uid in url
   source.data = GP : tx_ttproducts|uid
   tables = tt_products
   conf.tt_products >
   conf.tt_products = TEXT
   # also not sure about next line - check, what column stores the title of 
product
   conf.tt_products.field = title
   stdWrap.noTrimWrap = |<title>|</title>|
   stdWrap.htmlSpecialChars = 1
} 



More information about the TYPO3-english mailing list