Customize news view

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Hollywood
Forum Members
Forum Members
Posts: 10
Joined: Thu May 17, 2007 3:58 am

Customize news view

Post 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!
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm
Location: North West England

Re: Customize news view

Post 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
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am
Location: London, England

Re: Customize news view

Post 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'}
Hollywood
Forum Members
Forum Members
Posts: 10
Joined: Thu May 17, 2007 3:58 am

Re: Customize news view

Post 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?
Post Reply

Return to “Modules/Add-Ons”