How to show ALL news messages ?

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
rodeto
Power Poster
Power Poster
Posts: 410
Joined: Thu May 04, 2006 9:12 am

How to show ALL news messages ?

Post by rodeto »

On the main page of my site I show the latest news or, when the expiration date has come, no news at all.
But, on my site there is also a page for all the news messages.

But what code can I use to show all running messages and all expired messages too ? When I add showarchive="1" just the expired messages are shown or else it's just the running ones.
________________________________
Je gaat het pas zien als je het doorhebt.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to show ALL news messages ?

Post by RonnyK »

Vin,

I think he means that with the default tag, you see all news-entries that AREN'T expired. Using the "showarchive" shows ONLY expired entries. He wants an overall list showing both expired AND non-expired news in a single list.

Ronny

This post suggests that a solution is to be found in DEV, I didn't check it though:

http://forum.cmsmadesimple.org/index.ph ... l#msg29991
Last edited by RonnyK on Thu Apr 19, 2007 1:36 pm, edited 1 time in total.
Vin

Re: How to show ALL news messages ?

Post by Vin »

Sorry, deleted the post without refreshing the page...I forgot a little how the news are working and wanted to write a brand new post...
I think it's possible to have two tags in the page, the first just {news} or {cms_module module='News'} and the second with the attribute showarchive.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to show ALL news messages ?

Post by RonnyK »

Vin,

you're right, that would work as well. Only you don't have a single order as you're pulling to different blocks seperately. In fact is that the way I normally do it. I have a single page with the non-expired news and another page with all the archived data.

Ronny
rodeto
Power Poster
Power Poster
Posts: 410
Joined: Thu May 04, 2006 9:12 am

Re: How to show ALL news messages ?

Post by rodeto »

RonnyK wrote:
This post suggests that a solution is to be found in DEV, I didn't check it though:

http://forum.cmsmadesimple.org/index.ph ... l#msg29991
I will have a look at this option but I don't know how to implement thins solution into the module itself. Where do I need to add this diff-file ?
________________________________
Je gaat het pas zien als je het doorhebt.
Vin

Re: How to show ALL news messages ?

Post by Vin »

See this post - http://forum.cmsmadesimple.org/index.ph ... l#msg14964.
If anyone can explain it better, please do. I searched the docs (perhaps not properly), but I couldn't find more gentle way of learning the SVN updating.
Post Reply

Return to “CMSMS Core”