CMS Made Simple Forums

News module doc page
Page 1 of 1

Author:  thomahawk [ Sun Nov 17, 2013 8:31 am ]
Post subject:  News module doc page

At the bottom of the page "Documentation - Modules - News" is an example how to not show anything if no news articles are active:

{capture assign=news_there}{news}{/capture}
    {if $news_there}
    <div id="news">

I found this to not be working, like does someone else in my forum post.
But from this post, another code resultet which at least in my case, does work:

{if $items|@count == 0}
{foreach from=$items item=entry}
<a href="{$entry->moreurl}"> MORE</a>

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group