Random articles

If you would like to display random articles from your article list or section use function rand() as a order parameter in {init_articles).

Example:
In this sample one random news article is picked from the section with ID 1075. Parameter parent defines the section from where to get the articles, order="rand()" picks out random article, limit=1 allows to display only one article from this list.

<!--news component-->

{init_articles name=news parent=1075 order="rand()" limit="1"}

{init_article name=art id=$news.0->id}

<a href="{$art->href}" class="newsl">{$art->lead|truncate:80}</a>

<!--// news component-->