[Typo3-shop] two rows list
Franz Holzinger
franz at fholzinger.com
Mon Dec 6 14:39:15 CET 2004
Bart schrieb:
> Hi
> I installed tt_products extension and it works fine.
> I added plugin with product list to my page.
> My question is how I can list prodcuts in two rows instead of one.
> FG:
>
> product1 produc5
> product2 produc6
> product3 produc7
> product4 produc8
>
> Is there any solution to divide products list in two rows with same amount
> of products (50%/50%)
>
>
Here are the sources:
http://fholzinger.com/typo3/typo3/ext/tt_products/pi/
Setup:
plugin.tt_products.displayBasketColumns = 2
I want to change this to a constant in the next step.
Franz
Example for the template
----
<!-- ###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="1" width=1>
<tr>
<td><!--###LINK_PREV###-->###GW2B###<div align="left"><b>vorherige
Seite</b></div>###GW2E###<!--###LINK_PREV###--></td>
<td></td>
<td></td>
<td><!--###LINK_NEXT###-->###GW2B###<div align="right"><b>nächste
Seite</b></div>###GW2E###<!--###LINK_NEXT###--></td>
</tr>
<!-- ###ITEM_CATEGORY_AND_ITEMS### begin -->
<!-- ###ITEM_CATEGORY### begin -->
<tr>
</tr>
<!-- ###ITEM_CATEGORY### end -->
<!-- ###ITEM_LIST### begin -->
<tr>
<td colspan="3" align="center"
bgcolor="###GC2###">###GW2B###<b>bananaGUARDs - Auswahl:</b>###GW2E###</td>
</tr>
<TR><TD colspan="3">
<FORM method="post" action="###FORM_URL###" name="###FORM_NAME###">
<TABLE bordercolor="#003399" cellspacing="1" border="1">
<tr>
<td><img src="clear.gif" width=150 height=1></td>
<td><img src="clear.gif" width=150 height=1></td>
<td><img src="clear.gif" width=150 height=1></td>
</tr>
<!-- ###ITEM_SINGLE### begin-->
###ITEM_SINGLE_PRE_HTML###
<TD height="150" bgcolor="###GC1###" valign="bottom"
align="center">
<!--###LINK_ITEM###-->
###GW1B###<b>###PRODUCT_TITLE###</b>###GW1E###
<!--###LINK_ITEM###-->
<br>
###PRODUCT_IMAGE### <br>
###GW1B### Stückzahl: ###GW1E### <INPUT size="3"
maxlength="4" type="text" name="###FIELD_NAME###" value="###FIELD_QTY###">
<p> </TD>
###ITEM_SINGLE_POST_HTML###
<!-- ###ITEM_SINGLE### end -->
<TR>
<TD colspan="3" align="CENTER"> <input type="Submit"
name="order2" value="Warenkorb aktualisieren" onclick="if
(!document.forms['###FORM_NAME###']['###FIELD_NAME###'].value!=''){document.forms['###FORM_NAME###']['###FIELD_NAME###'].value=1;};"></TD>
</TR>
<TR>
<TD colspan="3" align="CENTER"> <input type="button"
name="warenkorb" value="zum Warenkorb"
onClick="self.location.href='index.php?id=36'"></TD>
</TR>
</TABLE>
</FORM>
</TD></TR>
<!-- ###ITEM_LIST### end -->
<!-- ###ITEM_CATEGORY_AND_ITEMS### end -->
<tr>
<td><!--###LINK_PREV###-->###GW2B###<div align="left"><b>vorherige
Seite</b></div>###GW2E###<!--###LINK_PREV###--></td>
<td></td>
<td></td>
<td><!--###LINK_NEXT###-->###GW2B###<div align="right"><b>nächste
Seite</b></div>###GW2E###<!--###LINK_NEXT###--></td>
</tr>
</TABLE>
<BR>
<table width="163">
<tr>
<td> </td>
</tr>
</table>
<BR>
<!-- ###ITEM_LIST_TEMPLATE### end -->
More information about the TYPO3-project-tt-products
mailing list