Page 1 of 1
how to create a news archive page
Posted: Sun Apr 22, 2012 6:59 pm
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 ?
Re: how to create a news archive page
Posted: Sun Apr 22, 2012 8:25 pm
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...
Re: how to create a news archive page
Posted: Mon Apr 23, 2012 3:35 pm
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?
Re: how to create a news archive page
Posted: Mon Apr 23, 2012 3:40 pm
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.
Re: how to create a news archive page
Posted: Mon Apr 23, 2012 3:48 pm
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!
Re: how to create a news archive page
Posted: Mon Apr 23, 2012 3:54 pm
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!