Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-04-14 08:52:13

bmwg
Member
Registered: 2010-04-06
Posts: 39

Get rid of <br /> tag in section_list output

I want to put some sections of my page in a list.
I have a form small_sections:

<txp:section_list exclude="news,products,concept" form="section_format" wraptag="ul" />

and the form section_format:

<txp:section link="1" title="1" wraptag="li" />

I get output in the form of:

<ul><li><a href="..">sectionName</a></li><br /><li>.....</ul>

How do I get rid of the <br /> tag?

Offline

#2 2010-04-14 08:54:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: Get rid of <br /> tag in section_list output

bmwg wrote:

How do I get rid of the <br /> tag?

Try adding break="" to the section_list tag. It defaults to br.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2010-04-14 10:07:22

bmwg
Member
Registered: 2010-04-06
Posts: 39

Re: Get rid of <br /> tag in section_list output

thanks!

Offline

Board footer

Powered by FluxBB