06/06/2012, 00:18:49
J'ai enfin trouvé
Ajout d'un foreach supplémentaire : {foreach from=$entry->fields item='field'}
Ajout d'un foreach supplémentaire : {foreach from=$entry->fields item='field'}
Code :
{foreach from=$entry->fields item='field'}
{if $entry->image neq ''}
{capture assign='photoarticle'}uploads/news/id{$entry->id}/{$entry->image}{/capture}
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}" class="alignleft">
{CGSmartImage alias='miniature_news' src=$photoarticle alt=$entry->title class="alignleft"}</a>
{elseif $field->name == 'imagePicker' && $field->value neq ''}
{capture assign='photopicker'}{eval var=$field->value|replace:'<img src="':''|replace:'" alt="" />':''}
{/capture}
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}" class="alignleft">
{CGSmartImage alias='miniature_news' src=$photopicker alt=$entry->title class="alignleft"}</a>
{/if}
{/foreach}