Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-12-03 13:19:38
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
sticky article+article list
i want to create page with sticky article and article list (only headlines) below.
my page:
<txp:article limit="1" status="sticky" />
<txp:if_article_list>
<ul>
<txp:article form="article_b" limit="5" />
</ul>
</txp:if_article_list>
article_b form:
<li><txp:permlink><txp:title /></txp:permlink></li>
but no articles is displayed when clicking to article headlines.
my homepage
where i made mistake?
Last edited by Gallex (2007-12-03 13:20:11)
Offline
Re: sticky article+article list
You’ve told TXP what to do for “if_article_list” but have you told it what to do “if_individual_article” ?
What you probably need is something like:-
<txp:article limit="1" status="sticky" />
<txp:if_article_list>
<ul>
<txp:article form="article_b" limit="5" />
</ul>
<txp:else />
<txp:article />
</txp:if_article_list>
Last edited by thebombsite (2007-12-03 13:27:35)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2007-12-03 13:54:22
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: sticky article+article list
thebombsite wrote:
What you probably need is something like:-
<txp:article limit="1" status="sticky" />
<txp:if_article_list>
<ul>
<txp:article form="article_b" limit="5" />
</ul>
<txp:else />
<txp:article />
</txp:if_article_list>
thank’s, it works now.
i have this in other page:
<txp:article limit="3" />
<txp:if_article_list>
<ul>
<txp:article form="article_b" offset="3" limit="90" />
</ul>
</txp:if_article_list>
and this worked correctly – that’s why i was little bid confused…
Offline
Pages: 1