Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-04-24 20:42:09
- M1rco
- Member
- Registered: 2008-04-19
- Posts: 13
Last 3 Posts - in a list?
Hi folks.
I want the “Last 3 Posts” in the Footer of my blog.
So I used the TXP-Tag, but I can’t figure out, how I can put it in a list.
The Articles are just given in plain links.
Hope you get what I mean, sorry for my bad english.
Offline
Re: Last 3 Posts - in a list?
use txp:recent_articles with the attribute limit="3"
and whatever else applies in your situation.
TXP Builders – finely-crafted code, design and txp
Offline
#3 2008-04-24 22:48:36
- M1rco
- Member
- Registered: 2008-04-19
- Posts: 13
Re: Last 3 Posts - in a list?
Sure, this is not the problem.
The code resultinh by txp:recent_articles is the problem.
I want:
<ul class=“xyz”>
<li><strong>Headline</strong></li>
<li>Latest Article</li>
<li>Latest Article</li>
<li>Latest Article</li>
</ul>
But I only get:
Headline<br/>
Article<br/>
Article<br/>
Article<br/>
Offline
Re: Last 3 Posts - in a list?
It should work with <txp:recent_articles break="li" wraptag="ul" class="xyz" limit="3" />
(my post above linked to the textbook reference where all this is detailed).
TXP Builders – finely-crafted code, design and txp
Offline
#5 2008-04-24 23:02:30
- M1rco
- Member
- Registered: 2008-04-19
- Posts: 13
Re: Last 3 Posts - in a list?
Oh, thanks.
And sorry, forget to click the link :|
Offline
Pages: 1