myshop-action:next-product
Entity | Value |
---|---|
Attribute(s) | style |
Type | action |
Relation | myshop-block:product, myshop-has:active-product |
The myShop addition myshop-action:next-product makes it possible to select the next line –product- of the product list within a myshop-block:product definition. The myshop-action:next-product addition can be used to create more complex own layouts where the structure of, for example, a table row and/or column exceeds the cell’s limits. In the example below the myshop addition illustrates this point. The addition myshop-action:next-product can be used in combination with myshop-has:active-product. The condition verifies that there are indeed products to be displayed. In the example, if there was an odd number, the last column will contain only one product. This control sees to it that there will not be two products displayed on the last row.
<table style="myshop-block:productlist" width="100%" border="0">
<tbody>
<tr>
<td align="center" style="myshop-block:product">
<table border="0" width="100%">
<tr>
<td valign="top">
<img style="myshop-image:1" src="http://www.mijnwinkel.nl/pic/leeg.gif" alt="picture" />
</td>
<td width="12%" valign="top">
<table border="0">
<tr>
<td style="myshop-label:1;font-weight:bold"></td>
<td style="myshop-value:1"></td>
</tr>
<tr>
<td style="myshop-label:2;font-weight:bold"></td>
<td style="myshop-value:2"></td>
</tr>
<tr>
<td style="myshop-label:3;font-weight:bold"></td>
<td style="myshop-value:3"></td>
</tr>
<tr>
<td colspan="2" align="right">
<a style="myshop-action:order">bestellen</a>
<a style="myshop-action:moreinfo">meer info</a>
</td>
</tr>
</table>
</td>
<td style="myshop-action:next-product">
<img style="myshop-image:1" src="http://www.mijnwinkel.nl/pic/leeg.gif" alt="picture" />
</td>
<td style="myshop-has:active-product" width="12%" valign="top">
<table border="0">
<tr>
<td style="myshop-label:1;font-weight:bold"></td>
<td style="myshop-value:1"></td>
</tr>
<tr>
<td style="myshop-label:2;font-weight:bold"></td>
<td style="myshop-value:2"></td>
</tr>
<tr>
<td style="myshop-label:3;font-weight:bold"></td>
<td style="myshop-value:3"></td>
</tr>
<tr>
<td colspan="2" align="right">
<a style="myshop-action:order">bestellen</a>
<a style="myshop-action:moreinfo">meer info</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
Post your comment on this topic.