Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-20 17:32:00

stirman
Member
Registered: 2005-12-02
Posts: 36

archive list minus most recent

Here’s the form code that generates my archive page at :http://www.aquestionablefaith.com/archives/

<code>
<div id=“arch-list”>
<txp:permlink> <txp:body /> </txp:permlink>
</div>
</code>

Is there anyway to modify this so it lists archived article, MINUS the most recent aricle.. which is the ‘current’ article on the site, so I don’t want to display that in the archived list… make sense?

Thanks,
stirman

Offline

#2 2005-12-20 19:05:11

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: archive list minus most recent

Call the archives page using a <txp:article offset="1" /> which will basically start the list on the second most recent article. You can do that by using a different page for the archives section or using the if_section conditional

Tag info for txp:article
Tag info for txp:if_section


Shoving is the answer – pusher robot

Offline

#3 2005-12-20 19:25:36

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: archive list minus most recent

You could use <txp:article_custom offset="1" form="..." /> in your page template.

Last edited by wet (2005-12-20 19:25:53)

Offline

#4 2005-12-20 19:42:09

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: archive list minus most recent

What are the benefits of article_custom vs the regular article tag for something like this?


Shoving is the answer – pusher robot

Offline

#5 2005-12-20 19:59:17

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: archive list minus most recent

Oh, just none. Our posts overlapped, your suggestion is a perfect fit.

Last edited by wet (2005-12-20 19:59:51)

Offline

#6 2005-12-20 20:15:10

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: archive list minus most recent

perfect, many thanks!

-stirman

Offline

#7 2005-12-20 21:12:11

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: archive list minus most recent

wet wrote:
Oh, just none. Our posts overlapped, your suggestion is a perfect fit.

I’m always curious for the differences between the two that I don’t know yet, which was why I asked (Re-reading my post I feel I came across kind of snotty)


Shoving is the answer – pusher robot

Offline

#8 2005-12-20 21:32:36

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

Re: archive list minus most recent

Using 2 article tags on the same page can cause a problem with having 2 sets of comments and comment entry forms appearing. Also article is “context-sensitive” and would only select articles from the current section whereas article_custom isn’t thus any article from any section will be selected.

In this particular instance the first example doesn’t apply as there is only one tag unless he wants to split the listing into separate categories or something which couldn’t be done with the article tag anyway. The second example may apply as I note that he is in an “archive” section so article_custom might be more appropriate.


Stuart

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

Offline

Board footer

Powered by FluxBB