Problem: Display most recent news item in full with listings of previous below

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
neuroboy
Forum Members
Forum Members
Posts: 13
Joined: Sun Dec 02, 2007 4:10 am

Problem: Display most recent news item in full with listings of previous below

Post by neuroboy »

Hi

I have a problem as described in the title.

To expand....

I have created a page called 'Newsletters' which I have made display a simple list of all the news items in the 'Newsletters' category I have set up, with a title link and a date, using a summary template I have created. Each linked item is a brief intro and a nicely formatted download link to a PDF.

Want I want to be able to do is display the most recent newsletter details and PDF download link in full at the top of this list.

This page is only accessed via a button link on the homepage template, and is not on the menu.

I've been racking my brains on the best way to proceed, but the only thing I can come up with is to hardcode the link to the most recent story on the homepage, and create a new detail tempate with the summary template I have already created embedded in it. Not very elegant, and when a new newsletter is added by the CMS user, I'd have to remember change the link on my homepage template.

I guess what I need to know is how do I generate a link to only the most recent news item in that category?

Any solutions gratefully received!

Thanks,
nb.
Last edited by neuroboy on Fri Feb 13, 2009 12:48 pm, edited 1 time in total.
Post Reply

Return to “Developers Discussion”