TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-tt-products@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 06.12.2006, 01:12
Ryan Hayle
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Pages as Categories

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 06.12.2006, 15:27
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Pages as Categories

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 09.12.2006, 00:31
Ryan Hayle
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] Pages as Categories

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:42 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77