Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-25 00:37:38

Polleke
New Member
From: Nederland
Registered: 2006-04-14
Posts: 2
Website

List of recent articles WITHOUT the most recent ones - revisited

I’ve read <a href=“http://forum.textpattern.com/viewtopic.php?id=15915”>this post</a>, but It doesn’t really solve my needs (or wishes rather).

The main page of my site shows exerpts of the 6 most recent articles in the main section of the page.
On the side, in a column, there’s a box with the most recent articles in a list. The list is limited to 8 titles, to keep things a bit clear and tidy.

But the top 6 of this list are also in the list of exerpts in the main section of the page.

I’m looking for a way to skip the 6 most recent article-titles from the list of most recent articles, so only the ones who are not in the main section anymore appear in the list.

I’ve tried ta apply offset=“6” to <txp:recent_articles />, but the tag doesn’t support the attribute. Any other way?

Thanks in advance! :-)

(Edited to show code. -Els)

Last edited by els (2006-04-25 06:35:05)

Offline

#2 2006-04-25 01:22:52

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: List of recent articles WITHOUT the most recent ones - revisited

Have you tried something like this:

<code>
<div id=“content”>
<txp:article_list form=“excerpted” limit=“6” excerpt=“y” />
</div>
<div id=“sidebar”>
<h3>Recent Articles</h3>
<ul id=“recent”>
<txp:article_custom form=“list” limit=“8” section=“same-as-the-article” />
</ul>
</div>

excerpted form:

<hx><txp:permlink><txp:title /></txp:permlink></hx>
<txp:excerpt />

list form:
<li><txp:permlink><txp:title /></txp:permlink></li>
</code>

I did something similar on a recent project, but I don’t remember if that’s what worked.

Offline

#3 2006-04-25 06:50:24

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: List of recent articles WITHOUT the most recent ones - revisited

You could also try this: txp:article pageby attribute.


Prrrrrrrr

Offline

Board footer

Powered by FluxBB