Re: Modification block "Articles récents" du module news. | Titre du sujet : Re: Modification block "Articles récents" du module news. par Ghia sur 28/05/2009 18:17:15
Essayez:
<tr>
<{assign var=liste_date value=''}>
<td>
<ul>
<{foreach item=news from=$block.stories}>
<{if $news.id != $block.spotlight.id}>
<{if $liste_date != $news.date}>
<br /><br />
<{$news.date}><br />
<{assign var=liste_date value=$news.date}>
<{/if}>
<li>
<{if $block.sort=='counter'}>
[<{$news.hits}>]
<{elseif $block.sort=='published'}>
<{else}>
[<{$news.rating}>]
<{/if}>
<{if $block.urlrewrite == "true"}>
<a href="<{$xoops_url}>/article.item.<{$news.id}>/<{$news.url}>" <{$news.infotips}>><{$news.title}></a> <br /><{$news.teaser}></li>
<{else}>
<a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>" <{$news.infotips}>><{$news.title}></a> <br /><{$news.teaser}></li>
<{/if}>
<{/if}>
<{/foreach}>
</ul>
</td>
</tr>
|
|