• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: News module doc page
PostPosted: Sun Nov 17, 2013 8:31 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Jul 25, 2008 10:13 am
Posts: 283
Location: Zug, Switzerland
At the bottom of the page "Documentation - Modules - News" is an example how to not show anything if no news articles are active:

Code:
{capture assign=news_there}{news}{/capture}
    {if $news_there}
    <div id="news">
    <h3>News</h3>
    {news}
    </div>
    {/if}


I found this to not be working, like does someone else in my forum post.
viewtopic.php?f=28&t=68592
But from this post, another code resultet which at least in my case, does work:

Code:
{if $items|@count == 0}
nada
{else}
{foreach from=$items item=entry}
{$entry->postdate|cms_date_format}<br>
{$entry->summary|cms_escape:htmlall}<br>
<a href="{$entry->moreurl}"> MORE</a>
{/foreach}
{/if}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting