Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-11-07 08:30:58
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
page with 2 recent articles+list of older articles on a bottom
and on a list should be displayed only older article titles.
this kind of page I would like to do.
newbie.
Offline
#2 2006-11-07 11:35:01
- mstwntd
- Member
- From: Melbourne, Australia
- Registered: 2004-12-25
- Posts: 52
Re: page with 2 recent articles+list of older articles on a bottom
Create two Article Forms:
article-a:
<txp:permlink /><txp:title /></txp:permlink>
<txp:body />
article-b:
<li><txp:permlink><txp:title /></txp:permlink></li>
And on your Page Template:
<txp:article form="article-a" limit="2" />
<ul>
<txp:article form="article-b" offset="2" limit="40" />
</ul>
Offline
#3 2006-11-07 14:58:33
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: page with 2 recent articles+list of older articles on a bottom
thanks
Offline
#4 2006-11-08 11:12:06
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: page with 2 recent articles+list of older articles on a bottom
I rushed a little bit…everything is not right.
If I click on older (or recent) article title (permlink) it opens a whole article but doubles the comment field and leaves the article permlink at the end. look at yourself http://www.tartulinnuklubi.pri.ee/textpattern/artiklid/
my article form_b:
<li><txp:permlink><txp:title /></txp:permlink></li>
my default article form:
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<p class="meta"><txp:permlink>Loe edasi...</txp:permlink> | <txp:comments_invite /> | <txp:posted /></p>
<txp:else />
<txp:body />
<p class="meta"><txp:comments_invite /> | <txp:posted /></p>
</txp:if_excerpt>
<txp:else />
<txp:body />
</txp:if_article_list>
and my page:
<txp:article limit="2" />
<ul>
<txp:article form="article_b" offset="2" limit="90" />
</ul>
what could be wrong here???
Last edited by Gallex (2006-11-09 13:32:06)
Offline
#5 2006-11-10 12:22:07
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: page with 2 recent articles+list of older articles on a bottom
does anybody knows the answer?
Offline
#6 2006-11-10 12:40:31
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: page with 2 recent articles+list of older articles on a bottom
Gallex wrote:
If I click on older (or recent) article title (permlink) it opens a whole article but doubles the comment field
You should set ‘Automatically append comments to articles?’ to ‘no’, see the FAQ.
and leaves the article permlink at the end.
Wrap the second article tag in a conditional:
<txp:if_article_list>
<ul>
<txp:article form="article_b" offset="2" limit="90" />
</ul>
</txp:if_article_list>
Offline
#7 2006-11-10 13:46:55
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: page with 2 recent articles+list of older articles on a bottom
Wrap the second article tag in a conditional:
<txp:if_article_list>
<ul>
<txp:article form="article_b" offset="2" limit="90" />
</ul>
</txp:if_article_list>
this was solution for both problems. many-many thanks to you, els!
Offline