[Typo3-shop] Pagetitle = 'product subtitle, product title'

Jogvan Olsen jo at atlanticvideo.dk
Sun Dec 18 10:35:09 CET 2005


Hi Franz

I have changed the function &printView as you described, but I get this 
error massage in fe:
'Parse error: parse error, unexpected '{' in . 
/typo3conf/ext/tt_products/lib/class.tx_ttproducts_single_view.php on line 
128

Jogvan Olsen


"Franz Holzinger" <franz at fholzinger.com> wrote in message 
news:mailman.1.1134807071.20251.typo3-project-tt-products at lists.netfielders.de...
> Hello Jogvan Olsen,
>
>>
>> substitutePagetitle = 2 set Pagetitle = products subtitle.
>>
>> But is it possibly to have both 'product subtitle' and 'product title' in 
>> the page title?
>>
> you must change the code of class.tx_ttproducts_singleview.php
>
> function &printView
>
> from
>
> if($this->conf['substitutePagetitle']== 2) { $TSFE->page['title'] = 
> $row['subtitle'] ? $row['subtitle'] : $row['title']; } elseif 
> ($this->conf['substitutePagetitle']==1) { $TSFE->page['title'] = 
> $row['title']; }
>
>
>
> to
>
>
> // set the title of the single view switch 
> ($this->conf['substitutePagetitle']) { case 1: $TSFE->page['title'] = 
> $row['title']; break; case 2: $TSFE->page['title'] = $row['subtitle'] ? 
> $row['subtitle'] : $row['title']; break; case 12: $TSFE->page['title'] = 
> $row['title'] . ' / ' . $row['subtitle']; break;
> case 21: $TSFE->page['title'] = $row['subtitle'] . ' / ' . $row['title']; 
> break; }
>
>
>
> Franz
>
>
> 





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