|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
On Wed, 22 Nov 2006 12:27, Franz Holzinger wrote:
>> When I use pages as categories, and include ###CATEGORY_TITLE### in my >> template, the category name comes with a forward-slash appended to it. >> Has anyone else seen this behaviour, and how can I get rid of it? >> > use the substitutePagetitle=1 for the single view. Hi Franz, Sorry for the late response, I got pulled off this project for a while, so I didn't have time to see if your solution worked. I tried this, but it doesn't change anything. I'm not sure, but I didn't think this was related to my problem, since I'm not talking about the product or page title, but rather the category title. I'm trying to include a breadcrumb which displays the category hierarchy and it looks like this: Shop > Apparel/ But that forward slash is not in the category title. I'm not sure where it's coming from! The code I'm using in my template is: <!--###ITEM_CATEGORY### begin--> ###CATEGORY_TITLE### <!--###ITEM_CATEGORY### end--> Thanks, Ryan _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#2
|
|||
|
|||
|
Hello Ryan,
> I tried this, but it doesn't change anything. I'm not sure, but I > didn't think this was related to my problem, since I'm not talking about > the product or page title, but rather the category title. I'm trying to > include a breadcrumb which displays the category hierarchy and it looks > like this: > > Shop > Apparel/ > > But that forward slash is not in the category title. I'm not sure where > it's coming from! > > The code I'm using in my template is: > <!--###ITEM_CATEGORY### begin--> > ###CATEGORY_TITLE### > <!--###ITEM_CATEGORY### end--> > > This comes from the single view class. Maybe you can provide a patch for that. // 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 _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#3
|
|||
|
|||
|
On Wed, 06 Dec 2006 08:27, Franz Holzinger wrote:
> This comes from the single view class. Maybe you can provide a patch > for that. Hi Franz, This wasn't actually the source of my problem, it was in the category model. I modified getMarkerArray in model/class.tx_ttproducts_category.php around line 350 like so: function getMarkerArray (&$markerArray, &$page, $category, $pid, $imageNum=0, $imageRenderObj='image', &$viewCatTagArray, $forminfoArray=array(), $pageAsCategory=0, $code, $id, $prefix, $linkWrap='') { $row = ($category ? $this->get($category) : array ('title' => '', 'pid' => $pid)); // Get image $this->image->getItemMarkerArray ($row, $markerArray, $row['pid'], $imageNum, $imageRenderObj, $viewCatTagArray, $code, $id, $prefix, $linkWrap); $pageCatTitle = ''; if ($pageAsCategory == 1) { $pageTmp = $page->get($pid); > $pageCatTitle = $row['title'] ? $pageTmp['title'].$this->conf['categorySeparator'] : $pageTmp['title']; } $catTitle = $pageCatTitle.($row['title']); $this->setMarkerArrayCatTitle ($markerArray, $catTitle, $prefix); parent::getItemMarkerArray ($row, $markerArray, $code, $prefix); } Then I set plugin.tt_products.categorySeparator = / in my template setup. This way people can define how they want to display sub-categories, etc. You might want to add it to the constants, etc. Cheers, Ryan _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Direct Mail Subscription + Categories | Xander Damen | typo3-english@lists.netfielders.de | 1 | 06.12.2006 11:18 |
| [TYPO3-templavoila] Reusing data from parent pages in TV templates. | shikeb | typo3-project-templavoila@lists.netfielders.de | 2 | 05.12.2006 13:08 |
| [TYPO3-shop] Re: [Typo3-shop] to browse categories in FE | Alexander | typo3-project-tt-products@lists.netfielders.de | 0 | 02.12.2006 16:35 |