Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-08-02 02:14:55
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Recent Posts section, but show only ones not on default?
I have a “recent posts” section as you can see here: <a href=“http://www.kentuckygolfing.com”>Kentucky Golfing</a>
I’m wanting to show the recent posts from the blog, but only the recent posts not already showing on the default/homepage. I think it’s kind of redundant to have three blog articles on the homepage and then have those same three in the middle column right next to them in the “recent” section.
Here is the code I’m using, just the basic:
<code>
<txp:article_custom form=“recent_posts” />
</code>
<br />
and the form:
<br />
<code>
<li><txp:permlink><txp:title /></txp:permlink></li>
</code>
Offline
Re: Recent Posts section, but show only ones not on default?
I think I saw a certain attribute that lets you skip the first few but don’t remember what it is.
Josie
Offline
Re: Recent Posts section, but show only ones not on default?
How about something like:
<code>
<txp:article_custom form=“recent_posts” offset=“10” />
</code>
replacing “10” with the number of posts that are displayed on the default/homepage.
Last edited by Christopher (2006-08-02 14:51:01)
Offline
Re: Recent Posts section, but show only ones not on default?
Further to Christopher’s suggestion you could use the glx_if plugin
example
<code><txp:glx_if_frontpage>
<txp:article_custom form=“recent_posts” offset=“10” />
<txp:else />
<txp:article_custom form=“recent_posts” />
</txp:glx_if_frontpage></code>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2006-08-02 16:09:58
- deronsizemore
- Member

- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: Recent Posts section, but show only ones not on default?
Awesome! Thanks guys.
Offline