how to create a news archive page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rdelsing
New Member
New Member
Posts: 4
Joined: Tue Jan 24, 2012 10:11 am

how to create a news archive page

Post by rdelsing »

I'am using the news module version 2.12.3. In a sidebar on the home page, i let appear the summery from the news articles, with a more link. But i want the more link leading me to a separate news page on my site with all the news articles. This archive page must show only the detail content from the news articles and not the summery. How can i make this happen ?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: how to create a news archive page

Post by Dr.CSS »

Archive for news is most times for expired articles if you want to show all articles on a page you just need {news}...

The more link will show the detail of an article, default it shows the summary above the main/detail part of the article, you can create a custom detail news template removing the summary call to only show the detail part...

You can set what page the detail/more link leads to using detailpage= in the tag or set it in the News admin...

Please read the Modules Help page...
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: how to create a news archive page

Post by pixelita »

I am trying to get archives set up correctly on two different live sites and it has been my belief all along that if an article has an expiration date it simply WILL NOT appear on the category or date-based archives.

Case in point:
http://parkwayud.org/news/topics/

These are the only two topics that have no expiration date. All the others expire. But I think they should snow up on the archive pages; yet they do not.

Here is my category template code:

Code: Select all

<h3>Browse News Topics</h3>
{news browsecat='1' browsecattemplate='topics' showall='0'}
showall='0' according to the help file should cause the expired posts to show up. Also I note that if you change browsecat from "1" to "0", it throws the entire content into the category display; we don't want that.

Another site I manage is behaving this exact same way,
http://www.idylwood.org

I have trained them not to set most of their news items with expiration dates so we have worked around that issue somewhat. The last news item that had an expiration date was dated July 2010 and is called "Water Rate Increase," and it appears nowhere in the date or category archives.

Any thoughts?
Submit your site to the We Love CMSMS showcase
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: how to create a news archive page

Post by calguy1000 »

as far as I can tell showarchive=1 will only show items who's expiry date is past.... and they have to have an expiry date.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: how to create a news archive page

Post by pixelita »

I saw that but right above it was that showall tag so I ran with that ball:

Code: Select all

(optional) showall="0" - Show all articles, irrespective of end date
(optional) showarchive="0" - Show only expired news articles.
Let me give it a try. Thanks, Calguy!
Submit your site to the We Love CMSMS showcase
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: how to create a news archive page

Post by pixelita »

Yep, showarchive='1' did the trick. Behold:
http://parkwayud.org/news/topics/ ... it's now displaying all the news items, regardless of their expiration date or lack of one.

Thanks much!
Submit your site to the We Love CMSMS showcase
Post Reply

Return to “Modules/Add-Ons”