18/09/2015, 21:13:32
Voici le code du gabarit sommaire, pour info
{if isset($pagecount) && $pagecount gt 1}
{$firstlink} {$prevlink} {$pagetext} {$curpage} {$oftext} {$pagecount} {$nextlink} {$lastlink}
{/if}
<ul class="products_list">
{foreach from=$items item=entry}
<li>
<a href="{$entry->detail_url}">{$entry->product_name}
{if isset($entry->fields) && count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
<div class="product_detail_field">
{if $field->type == 'image' && isset($field->value)}
<img src="{$entry->file_location}/{$field->value}" alt="{$field->value}"/>
{/if}
</div>
{/foreach}
{/if}
</a>
{*
{if isset($entry->categories)}
Categories:
{foreach from=$entry->categories item='category'}
{$category->name},
{/foreach}
<br/>
{/if}
*}
</li>
{/foreach}
</ul>
{if isset($pagecount) && $pagecount gt 1}
{$firstlink} {$prevlink} {$pagetext} {$curpage} {$oftext} {$pagecount} {$nextlink} {$lastlink}
{/if}
<ul class="products_list">
{foreach from=$items item=entry}
<li>
<a href="{$entry->detail_url}">{$entry->product_name}
{if isset($entry->fields) && count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
<div class="product_detail_field">
{if $field->type == 'image' && isset($field->value)}
<img src="{$entry->file_location}/{$field->value}" alt="{$field->value}"/>
{/if}
</div>
{/foreach}
{/if}
</a>
{*
{if isset($entry->categories)}
Categories:
{foreach from=$entry->categories item='category'}
{$category->name},
{/foreach}
<br/>
{/if}
*}
</li>
{/foreach}
</ul>