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

Franz Holzinger franz at fholzinger.com
Sat Dec 17 09:13:01 CET 2005


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