how to create a news archive page
how to create a news archive page
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
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...
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
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:
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?
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'}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

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: how to create a news archive page
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.
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.
Re: how to create a news archive page
I saw that but right above it was that showall tag so I ran with that ball:
Let me give it a try. Thanks, Calguy!
Code: Select all
(optional) showall="0" - Show all articles, irrespective of end date
(optional) showarchive="0" - Show only expired news articles.Submit your site to the We Love CMSMS showcase
Re: how to create a news archive page
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!
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


