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

2011-12-29 Thread Rayuth You (Yuth)

Hi list

Using TYPO3 4.5.0 and tt_products 2.7.2, I wanna overwrite  with 
product's title NOT the page's title anymore.


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

But what I got is EMPTY. It displays no value in .
I wish my TypoScript is wrong. What need I do or configure?

Thanks,
Rayuth
--
Khmer TYPO3 User Group
Spirit of sharing

Rayuth You
Web Developer

M: +855 11 262 078
E: ray...@typo3cambodia.org
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


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

2012-01-03 Thread Victor Livakovsky

Hi.


Here is my TypoScript:
page.headerData.10 = TEXT
page.headerData.10 {
   field = ###PRODUCT_TITLE###
   noTrimWrap = |||
   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 = |||
  stdWrap.htmlSpecialChars = 1
} 


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english