Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2008-04-24 20:55:23

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

Online

#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

#4 2008-04-24 22:59:11

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

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

Online

#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

Board footer

Powered by FluxBB