[TYPO3-shop] Overwrite page's title with product title

Franz Holzinger franz at ttproducts.de
Wed Jan 18 12:25:01 CET 2012


Hello,
On 30/12/11 08:26, Rayuth You (Yuth) wrote:

> Using TYPO3 4.5.0 and tt_products 2.7.2, I wanna overwrite <title> 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 = |<title>|</title>|
> stdWrap.htmlSpecialChars = 1
> }
TYPO3 does not know about the markers from tt_products 
('###PRODUCT_TITLE###'). Your TypoScript must make a query on the 
tt_products table.

But the code of tt_products already can set the product's title of the 
single view as the page title:

substitutePagetitle

See file view/class.tx_ttproducts_single_view.php for details.

- Franz



More information about the TYPO3-project-tt-products mailing list