News Headlines

3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 17, 2009   (RSS)

By (Deleted User) - December 17, 2009

I have created a section based on your News template. The newsList.php page shows all the news when my goal was just to show headlines. I thought that newsDetail.php was intended to allow the readers to read more.

Is it possible to just list a couple of lines and a link to "read more"? It would be useful if the editor could determine how much of the new to show on the List page too.

It would help a lot to have some help on this issue.

Thank you.

Re: [rneube] News Headlines

By Chris - December 17, 2009

Hi rneube,

You can easily remove extra fields you don't want to display on your newsList.php page. Just open that file up in a text editor and strip out the lines which reference fields you don't want. They're included in the default page because it's a lot easier to remove them than to remember the exact code to add them just in case you want to display one or more of them.

Is it possible to just list a couple of lines and a link to "read more"? It would be useful if the editor could determine how much of the new to show on the List page too.


If you want it to be up to the editor, the simplest solution would be to add a new field called "summary" and display that on the list page.

Alternately, you can [url http://www.interactivetools.com/forum/gforum.cgi?post=74241#74241]automatically trim your content field to a certain number of characters[/url], but that only works properly if you aren't putting markup in your content.

I hope this helps! Please let me know if you have any questions.
All the best,
Chris