[TYPO3-commerce] hide ###CATEGORY_IMAGES### in ###CATEGORY_ITEMS_LISTVIEW_2###
Bas van der Togt
bas.vander.togt at efocus.nl
Tue Dec 4 18:48:03 CET 2007
Sorry for this late reaction but i found a better solution:
replace line 514 in lib/class.tx_commerce_pibase.php:
$templateMarker =
'###'.strtoupper($this->conf['templateMarker.']['categoryView']).'###';
with:
$templateMarker =
empty($this->category_products)?'###'.strtoupper($this->conf['templateMarker.']['categoryView']).'###':'###LIST_VIEW_DISPLAY###';
than add the following lines to you template:
<!-- ###LIST_VIEW_DISPLAY### begin -->
###SUBPART_CATEGORY_ITEMS_LISTVIEW###
###CATEGORY_BROWSEBOX###
<!-- ###LIST_VIEW_DISPLAY### end -->
This change looks if there are any products on a page. If true it shows
the subpart ###LIST_VIEW_DISPLAY### otherwise ###CATEGORY_VIEW_DISPLAY###
Kind regards,
Bas
Michiel Roos wrote:
> Bas van der Togt wrote:
>> Thank you again Michiel.
>>
>> Ok that's a good point, but how can i set in TS to use an other page
>> for my product list? I followed the manual on the wiki page and it
>> says that the the whole listing is rendered on one page...
>
> Nou Bas,
>
> This is what the overridePid is used for.
>
> Put this in the constants section of your TS template:
>
> [PIDinRootline = 444]
> plugin.tx_commerce_lib {
> overridePid = 446
> }
> [end]
>
> Kind regards,
>
>
> Michiel Roos
>
More information about the TYPO3-project-commerce
mailing list