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

Tobias Dörner hermes1 at web.de
Wed Jan 4 09:35:39 CET 2012


Hi 
When you use seo_dynamic_tag
(http://typo3.org/extensions/repository/view/seo_dynamic_tag/current/) it is
simple to make meta description, keywords and title.
Regards :)
Tobi

-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.typo3.org
[mailto:typo3-english-bounces at lists.typo3.org] Im Auftrag von Peter Kühnlein
Gesendet: Mittwoch, 4. Januar 2012 07:11
An: TYPO3 English
Betreff: Re: [TYPO3-english] [Resolved] tt_products: overwrite page's title
with product title

Hi Rayuth,

I followed the discussion because I want to put the product description 
into the description tag; since this should work similarly, could you 
please post the TS that actually does the job for you? Or is it the TS 
Victor kindly suggested without modification?

Thanks,
Peter

Am 04.01.2012 02:26, schrieb Rayuth You (Yuth):
> 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
>> }
-- 

http://www.function2form.net
http://www.peter-kuehnlein.net

"It is foolish to live within this dream of a world seeing unpleasantness
  and doing only things that you do not like."

(Hagakure)

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



More information about the TYPO3-english mailing list