Design using SMARTY

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Zappa
Forum Members
Forum Members
Posts: 53
Joined: Thu Jan 04, 2007 9:44 pm

Design using SMARTY

Post by Zappa »

Hello,

On the index page of my website I have a news area which displays 6 items from the news. 
Is there an easy way using SMARTY or PHP to implement something where I can make 2 rows with different backgrounds. E.g.


  News Title here
  News Title here
  News Title here
  News Title here
  News Title here
  News Title here


Thanks
cyberman

Re: Design using SMARTY

Post by cyberman »

Modify your news summary template like this

Code: Select all

  <div class="{cycle values="newsRow1,newsRow2}">{$entry->titlelink}</div>
Post Reply

Return to “CMSMS Core”