Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-20 17:22:55

bottlerocket
Member
Registered: 2009-12-07
Posts: 11

Display articles by month only

I have been digging around here with not much luck.

I want to set up a page, an archive page, that displays all the articles bya single month. Not just the title, but the title, an except and article image. So when someone selects “April” (in a archive list of months), they will be displayed a page of articles such as what is generated using <txp:article…> or <txp:article_custom>.

I am currently using the rss_suparchive plugin to generate the archive list of months. When clicking on an month, say april, the URL changes to “http:// ….archive/2010/04”. Ideally, I am trying to pass 2010/04 back into the <txp:article_custom..> in some way.

I have tried implementing the asy_wondertag plugin by placing <txp:posted format=”%Y-%m” /> within the date parameter of the <txp:article_custom> tag, but this returns errors and also doesnt return the right articles anyway.

However, this may be completely the wrong approach, so if anyone has got any suggestions, or can help with implementation, I would be greatly appreciative

Thanks in Advance

T

Offline

#2 2010-04-21 11:14:33

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Display articles by month only

Have you had a look at upm_date_archive? You can create an annual/monthly menu and clicking on a month displays that month’s articles. The display is controlled by a form so you can display the articles in any way you wish.

Last edited by thebombsite (2010-04-21 11:16:43)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2010-04-22 19:04:25

bottlerocket
Member
Registered: 2009-12-07
Posts: 11

Re: Display articles by month only

Ah, thanks for that. That’s been a real help.mainly because it helped reveal some underlying issues with the structure of the my textpattern site. That was essentially the problem, the interplay between sections and articles within a section.

Offline

#4 2010-04-22 21:01:59

sereal
Member
From: Indonesia
Registered: 2010-02-18
Posts: 55

Re: Display articles by month only

would you mind to take a look on my site: – scroll down before the bottom

imajalah.com/v2/info-mac

is that kind of archive you want to do ? if that so, here’s how I did that

<div id=“aMPost”>
<div id=“year”>
<txp:if_different><h2><txp:posted format=”%Y” /></h2></txp:if_different>
</div><!— end aYear —>
<div id=“month”>
<txp:if_different> <h4><txp:posted format=”%B” /></h4>
</txp:if_different>
</div><!— end aMonth —>
<div id=“aPosted”> <a href=”<txp:permlink />”><txp:title /></a> <txp:posted format=”%h. %e” />
</div><!— end aPosted —>
</div><!— end aMPost —>

hope it helps :)

Last edited by sereal (2010-04-22 21:03:38)


$(mydocument).notyetready(function() {});
dowebsitesneedtolookexactlythesameineverybrowser ?

Offline

Board footer

Powered by FluxBB