Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-02-08 15:13:19
- juliane
- Member
- Registered: 2009-02-08
- Posts: 33
how to show recent posted articles. it's only showing one.
hi. i’m trying to set up my default page to show the 10 recent posted articles.
but it only show one article. and when I try to use article_listing form. it only shows the title on one article.. not the full article itself.
can anyone help?
in my default page:
<!— posts —>
<div class=“column2”>
<txp:article sort=” Posted desc” />
</div>
in my default article form:
<div id=“content”>
<div class=“column2-1”>
<txp:article_image class=“linkedimage” />
</div>
<div class =“column2-2”>
<span class=“blogtitle”><txp:permlink><txp:title /></span>
<br /><div class=“bloglink”><span class=“smaller”><txp:category1 title=“1” link=“1” />, <txp:category2 title=“1” link=“1” />
</span></div>
</txp:if_individual_article>
<span class=“content”><span class=“bloglink”>
<txp:body />
</span></span><br />
<span class=“smaller”><b>_</b><br />posted by <txp:author /> / <txp:posted format=”%b %d, %Y” /></span>
</div>
thanks in advance.
Offline
Re: how to show recent posted articles. it's only showing one.
Well mine works at aspirecreate.com
Here is what I use
<txp:article form=“aspireArticleform” limit=“8” listform=“aspireArticleform” pgonly=“0” sort=“Posted desc” />
Just stick your image and body tags in a form called aspireArticleform form
Offline
Re: how to show recent posted articles. it's only showing one.
In the “Sections” tab have you allowed sections to appear on your front-page?
Also I spotted this line in your form:-
<span class="blogtitle"><txp:permlink><txp:title /></span>
which should be:-
<span class="blogtitle"><txp:permlink><txp:title /></txp:permlink></span>
if you want linked titles.
Plus you have this:-
</txp:if_individual_article>
all on it’s lonesome without any opening tag. I’m not sure which part of the form you want to appear in “individual_article” view but this is a wrapping tag so you need both parts:-
<txp:if_individual_article>individual_article view content here</txp:if_individual_article>
Last edited by thebombsite (2009-02-08 17:53:20)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#4 2009-02-11 03:08:10
- juliane
- Member
- Registered: 2009-02-08
- Posts: 33
Re: how to show recent posted articles. it's only showing one.
oh, strange. it’s working now. but if I take off the </txp:if_individual_article> part. it won’t work.
or if i put up the <txp:if_individual_article> in the beginning.. it also won’t work.
Offline
#5 2009-02-11 04:19:44
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: how to show recent posted articles. it's only showing one.
Which means you’ve got a rogue one somewhere. Use tag trace.
Offline