Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-02-14 17:45:55
- xexagon
- New Member
- Registered: 2008-02-14
- Posts: 1
Outputting lists (solved)
Hi – I’ve just installed Textpattern and dived straight in. I’m using this code to display a list of recent articles:
<txp:recent_articles label="Recent Articles" sort="Posted desc" />
It outputs this html:
Articles<br /><a href="http://www.blah.com/me/blog/welcome">Welcome</a><br /><a href="http://www.blah.com/me/blog/a-test-article">A test article</a><br /><a href="http://www.blah.com/me/blog/first-post">First Post</a>
Obviously I’d like a nice unordered list and I’d like Articles to be wrapped in h2
tags.
How would I go about this?
Thanks
Good ole RTFM worked here. Apologies for any time wasted.
<txp:recent_articles label="Recent Articles" sort="Posted desc" labeltag="h2" wraptag="ul" break="li" />
Last edited by xexagon (2008-02-14 17:54:18)
Offline
Pages: 1