Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-21 06:42:05

darock
Member
Registered: 2007-11-23
Posts: 54

How to create an unordered list for the <txp:if_section> tag?

I have the following code in my page;

<txp:if_section name="home">
<txp:recent_articles section="home" label="" />
</txp:if_section>
<txp:if_section name="consignment">
<txp:recent_articles section="consignment" label="" />
</txp:if_section>

but how do I get the links that are outputted in a list format?

Offline

#2 2007-12-21 07:14:21

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: How to create an unordered list for the <txp:if_section> tag?

txp:if_section is just a conditional. it doesn’t output anything by itself. use break="li" and wraptag="ul" attributes on your recent_articles tags

Last edited by iblastoff (2007-12-21 07:21:33)

Offline

Board footer

Powered by FluxBB