Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-01 04:04:52

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Show all articles from a given month

I want my archives to include links to pages that will show all the articles from a given month, without having to create a new section every month.

My default page shows 12 articles at a time. The archive, obviously, will have to allow for more then that, so I need a new section, “archive,” and a new page.

If I use article_custom on the archive page, then my links, which are passing the info about which MONTH to show, get ignored.

If I use article, then I need to specify section=“article”, but the article tag ignores that! The desired result is the simplest thing in the world, but I’m caught in a catch-22?!


Yes, I have tried turning it off and on.

Offline

#2 2006-04-01 04:54:21

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Show all articles from a given month

<a href=“http://textpattern.com/faq/134/how-do-i-make-an-archive-page”>FAQ</a>—the article might not give you <em>exactly</em> what you want, but it’ll definitely point you in the right direction.

Alternatively, there’s the <a href=“http://textpattern.org/plugins/355/akwarchive”>akw_archive plugin</a>.

Offline

#3 2006-04-01 15:21:06

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: Show all articles from a given month

Nope; I’ve read the FAQ many times, and I understand what it accomplishes, which, unfortunately, is not at all want I’m after. The FAQ’s version of an archive is a page with permlinks to single-article pages of the articles. What I’m after is links to pages which hold all the articles for a given month, using the default article form. My problem is NOT creating the list itself – it’s no problem to hand-code one line each month. My problem is how to set up the PAGE that should be linked TO, without having each month of the archive be a separate section.

Currently, I’m using, for example, <a href="/?month=2006-02">February 2006</a> to link to the archive page for Feb-06. This works fine, except that it uses the default page, which only displays 12 articles. I want my archive page to show up to 99 articles, but when I set up a section called “archive” to do that, and change the above link to href="/?month=2006-02&s=archive" OR href="/?s=archive&month=2006-02", it doesn’t work.

The reason, of course, is that txp:article only shows articles from the section you’re in. Ok, so I change it to <txp:article_custom section="article" limit="99" />. Now, since article_custom is not context-sensitive it ignores the month parameter in the URL!

Is this a catch-22, or is there some way out?


Yes, I have tried turning it off and on.

Offline

#4 2006-04-01 15:45:26

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Show all articles from a given month

In that case, definitely take a look at the plugin I linked to above. I think it does exactly what you want.

Offline

#5 2006-04-02 19:30:23

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: Show all articles from a given month

I installed akw_archive (and akw_date_aware, which it requires), and it’s spitting nasty PHP errors. I suspect because it hasn’t been updated since 2004.

SO…. anyone else see way this could be done (without a new section for every month); or could I get definite word that it can’t be done?


Yes, I have tried turning it off and on.

Offline

#6 2006-04-03 00:58:54

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Show all articles from a given month

I think it’s reasonable to assume that it is, in fact, possible since it worked well with previous Textpattern releases.

My only advice at this point is to contact <a href=“http://www.nakedloftparty.com/”>the plugin’s author</a> directly. Note that the site’s archives seems to work without any errors.

Sorry I can’t give you a more direct solution.

Offline

#7 2006-04-03 01:11:52

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Show all articles from a given month

Wouldn’t chh_article_custom and chh_related_articles do that?
Both have the time attribute that can be customized and the availability to restrict by multiple specific sections, which does not work with default article_custom.

regards, marios

Last edited by marios (2006-04-03 01:16:48)


⌃ ⇧ < ⌃ ⇧ >

Offline

#8 2006-04-03 11:06:22

lozzmo
New Member
From: Melbourne, Australia
Registered: 2006-04-03
Posts: 2
Website

Re: Show all articles from a given month

I can’t seem where to download the actual link. The plugin page doesn’t have a link, and the authors website doesn’t seem to have a link to it (even did a search).
Does anyone have it?

Thanks

Offline

Board footer

Powered by FluxBB