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

Rayuth You (Yuth) rayuth at typo3cambodia.org
Wed Jan 4 02:26:38 CET 2012


Hi Victor

Thanks now it works :)

Rayuth

On 01/03/2012 06:30 PM, Victor Livakovsky wrote:
> 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
> }


-- 
Khmer TYPO3 User Group
Spirit of sharing

Rayuth You
Web Developer

M: +855 11 262 078
E: rayuth at typo3cambodia.org


More information about the TYPO3-english mailing list