Template of news summary:
Code: Select all
{strip}
{capture assign=submitted_images}{$entry->file_location}/{$entry->fieldsbyname.Images->value}{/capture}
<!-- .news-summary wrapper -->
<article class='news-summary'>
<!-- h2>Latest articles</h2 -->
{foreach from=$items item='entry'}
<!-- .news-article (wrapping each article) -->
<section class='news-article'>
<strong class="category"><a href="{$entry->category|cms_escape:htmlall}">{$entry->category}</a></strong>
<header>
<a href='{$entry->moreurl}' title='{$entry->title|cms_escape:htmlall}'>
{if $entry->fieldsbyname.Images->value != ''}
{CGSmartImage filter_croptofit="320,200,c" noembed='0' quality='85' src="{$entry->file_location}/{$entry->fieldsbyname.Images->value}" alt="{$entry->title}"}
{/if}
<h2>{$entry->title|cms_escape}</h2></a>
</header>
{if $entry->summary}
<p>{eval var=$entry->summary|strip_tags} <span class='more'>{$entry->morelink} →</span></p>
{else if $entry->content}
<p>{eval var=$entry->content|strip_tags}</p>
{/if}
<!-- footer class='news-meta'>
{if $entry->postdate}
{$entry->postdate|cms_date_format}
{/if}
{if $entry->category}
<strong> {$category_label}</strong> {$entry->category}
{/if}
<!-- {if $entry->author}
<strong> {$author_label}</strong> {$entry->author}
{/if} -->
</footer -->
<!-- .news-summary wrapper -->
{
</section>
<!-- .news-article //-->
{/foreach}
<!-- news pagination -->
{if $pagecount > 1}
<span class='paginate'>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</span>
{/if}
</article>
<!-- .news-summary //-->
{/strip}
Code: Select all
<section class="news-article">
<category>Category</category>
<h2>
<img>
Recent news
</h2>
<h3>Old news n</h3>
..
<h3>Old news n+1</h3>
</section>