Need of channel and of collection

News

{if $owidget->context->id eq 1 } {assign var="where" value="id > 0"} {else} {assign var="where" value="channelId=`$owidget->context->id`"} {/if} {loop class="article" where=$where orderby="modifiedAt DESC" limit="1"} {include file="demo/blocks/article_list.tpl" first=$loop.article.first} {/loop}
{assign var="photo" value=$article|@wcm:firstPhoto} {if $photo} {$photo.title} {/if}

{$article.title}

by {$article.author}, {$article.publicationDate|date_format:"%B %e, %Y"}


{if $article.abstract} {$article.abstract|strip_tags|truncate:250:"..."} {else} {loop class="chapter" of="article" order="rank" limit="1"} {$chapter.body|strip_tags|truncate:250:"..."} {/loop} {/if}

Read the full story

{$photo.caption}