Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
Shoving is the answer – pusher robot
Offline
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
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
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
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
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
Pages: 1