[TYPO3-shop] Listview and categories - Display columns

Jogvan Olsen jo at atlanticvideo.dk
Mon May 25 10:01:40 CEST 2009


Hi

I still having problems with my 'displayColumns' in Listview when I 
assign categories to my products, and can't figure out what I am doing 
wrong.

I want my listing to be displayed in 3 columns – and NOT start on a new 
row each time the category change.

I have this in my TS setup:
plugin.tt_products.conf.tt_products.LIST.displayColumns.1 = 3

If I understand the manual correctly, this means: sort on the first 
category in the tree (in my case 'all products') and display listview in 
3 columns. But it doesn't seem to be the case – so I need some more help...

Hope someone can tell me what I am missing / doing wrong.



My category tree look like this:

all products
|
-|type
  |--t1
  |--t2
  |--t...
  |
  |color
  |--c1
  |--c2
  |--c...


When no category are assigned to the products, I have this list layout.

This is the layout of listing I want – even when I assign multiply 
different categories to each product. My problem is – I can't figure out 
how – please help.

|-----------------|-----------------|-----------------|
| PRODUCT1        | PRODUCT2        | PRODUCT3        |
|                 |                 |                 |
|-----------------|-----------------|-----------------|
| PRODUCT4        | PRODUCT5        | PRODUCT6        |
|                 |                 |                 |
|-----------------|-----------------|-----------------|



When I add one category to each product (different category for each 
product) I get this listing.
I get at a new row each time the category change.

|-----------------|
| PRODUCT1        |
| category:       |
|  c1             |
|-----------------|
| PRODUCT2        |
| category:       |
|  c2             |
|-----------------|
| PRODUCT3        |
| category:       |
|  c3             |
|-----------------|
| PRODUCT4        |
| category:       |
|  c4             |
|-----------------|
| PRODUCT5        |
| category:       |
|  c5             |
|-----------------|
| PRODUCT6        |
| category:       |
|  c6             |
|-----------------|



When I add an additional category to the products, I get this listing 
(If I also add the category 'all products' to all products, I get the 
same listing).

|-----------------|-----------------|
| PRODUCT1        |                 |
| category:       |                 |
|  c1             |                 |
|  t1             |                 |
|-----------------|-----------------|
| PRODUCT2        | PRODUCT3        |
| category:       | category:       |
|  c2             |  c3             |
|  t1             |  t1             |
|-----------------|-----------------|
| PRODUCT4        |                 |
| category:       |                 |
|  c4             |                 |
|  t1             |                 |
|-----------------|-----------------|
| PRODUCT5        |                 |
| category:       |                 |
|  c5             |                 |
|  t1             |                 |
|-----------------|-----------------|
| PRODUCT6        |                 |
| category:       |                 |
|  c6             |                 |
|  t1             |                 |
|-----------------|-----------------|



My settings:

pageAsCategory is set to ’0’ in EM


My tt_product part of my TS setup is:


############## tt_products start ##############
plugin.tt_products {

	pid_list = 271,274,242,312,247
	pidsRelatedProducts = 242
	separateImage = 1
	clickIntoBasket = 1
	PIDbasket = 310
}


plugin.tt_products.conf.tt_products.LIST.displayColumns.1 = 3


############## tt_products End ##############


The List view part of my html template look like this.
<!-- ###ITEM_CATEGORY### begin --> and <!-- ###ITEM_CATEGORY### end --> 
  is removed.

----------------
<!-- ###ITEM_LIST_TEMPLATE### begin
This subpart is used to display the regular list of products.
It's also used by search-results.
-->
<table border="0" cellspacing="0" cellpadding="0" >
	<tr>
		<td><!--###LINK_PREV###-->###GW2B###<div align="left">
			<b>Forige side</b></div>###GW2E###<!--###LINK_PREV###--></td>
		<td></td>
		<td></td>
		<td><!--###LINK_NEXT###-->###GW2B###<div align="right">
			<b>Næste side</b></div>###GW2E###<!--###LINK_NEXT###--></td>
	</tr>


	<tr>
		<td colspan="4"><img src="clear.gif" width="1" height="1"></td>
	</tr>
		<!-- ###ITEM_CATEGORY_AND_ITEMS### -->
		<!-- ###ITEM_LIST### begin -->
	<tr>

		<td colspan="4">
		<form method="post" action="###FORM_URL###"  name="###FORM_NAME###">
		<table border="0" cellspacing="0" cellpadding="1">
		<tr>
			<!-- ###ITEM_SINGLE### begin-->
           		###ITEM_SINGLE_PRE_HTML###		
			<td>
				<table width="200" border="0" cellpadding="0">
					<tr>
						<td colspan="4"><img src="clear.gif" width="200" height="1"></td>
					</tr>
					<tr>
					<td colspan="4" valign=top><!-- ###LINK_ITEM###-->###PRODUCT_IMAGE###
                                         	<!-- ###LINK_ITEM###--><br/>
											<!-- ###LINK_ITEM###-->###GW1B###<b>###PRODUCT_TITLE###</b><br>
											###PRODUCT_SUBTITLE### ###GW1E###<!-- ###LINK_ITEM###--></td>
					</tr>
				</table>
			</td>
			###ITEM_SINGLE_POST_HTML###
			<!-- ###ITEM_SINGLE### end -->
		</tr>
		</table>
		</form>
		</td>

		</tr>
		<!-- ###ITEM_LIST### end -->
         	<!-- ###ITEM_CATEGORY_AND_ITEMS### -->
		<tr>
			<td><!--###LINK_PREV###-->###GW2B###<div align="left">
				<b>Forige side</b></div>###GW2E###<!--###LINK_PREV###--></td>
			<td></td>
			<td></td>
			<td><!--###LINK_NEXT###-->###GW2B###<div align="right">
			<b>Næste side</b></div>###GW2E###<!--###LINK_NEXT###--></td>
		</tr>
</table>
<!-- ###ITEM_LIST_TEMPLATE### -->

----------------------

I use:
TYPO3 ver. 4.2.6
tt_products ver 2.7.1
mbi_products_categories ver. 0.3.5
nsb_cat2menu ver. 0.0.1



thanks in advance
jogvan olsen

Franz Holzinger skrev:
> Jogvan Olsen a écrit :
>> In list view my listing start on a new row each time the category 
>> change. I my TS setup I have ‘displayBasketColumns = 3’, and would 
>> like to list 3 products on each row - without regard to categories.
> 
> This is deprecated.
> You should use this instead:
> 
> plugin.tt_products.conf.tt_products.LIST.displayColumns.1 = 3
> 
>> Is that possibly?
>>
>> I have removed the <!-- ###ITEM_CATEGORY### begin --> ... <!-- 
>> ###ITEM_CATEGORY### end -->  section from my list template, and in my 
>> TS setup I have ‘displayListCatHeader = 0’.
> 
> Yes, you must remove this subpart in order not to consider the category 
> output in the product list view.
> 
> - Franz
> 


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