Page 1 of 1

Customize news view

Posted: Thu May 17, 2007 4:02 am
by Hollywood
All,

My first on this board -- this is a great CMS!

Here's what I'm trying to do.  I have a homepage where I want to display the first two news items (just the headline).  The news headlines will be clickable to the main news page.  That's it, but I have tried and been unsuccessful. 

One more note, I want the code to look like this:

News item 1
News item 2


...as I am trying to make this design web-standards compliant using a list.

Thank you!

Re: Customize news view

Posted: Thu May 17, 2007 6:56 am
by Russ
In Admin, look  under the Content Menu and then News. Then look at the Summary and Detail templates tabs. Here you can set a mix of html and module variables to allow you to achieve this.

Hope this helps,
Russs

Re: Customize news view

Posted: Thu May 17, 2007 9:49 am
by stopsatgreen
First you will need to modify the Summary Template in Content > News - you can get help on how to do this by clicking the Help link above it.

Then you'll need to put this code in your page:

{news number='2'}

Re: Customize news view

Posted: Tue May 22, 2007 1:34 pm
by Hollywood
A follow-up...  I've gotten the template set up properly, but I now I'm starting to play with the detail template.  If I want the news items to all click to a news page that shows all news items, do what do I need to put in the detail template?