Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-05 10:51:09

hurrlipurr
New Member
From: Giessen, Germany
Registered: 2008-10-05
Posts: 2

Different behavior of linklist and section_list

Hi there,

I’m wondering why linklist is working different than section_list:

<txp:section_list wraptag="ul" break="li" /> renders to
<li> <a href="http://oksol.dev/about/">About</a> </li>

while

<txp:linklist wraptag="ul" break="li" /> renders to
<li> <a href="http://textpattern.net/">TextBook</a> <br/> </li>

with an extra <br/>.

Is this how it should work (and why)? What can I do to make <txp:linklist> omit the <br/>?

Offline

#2 2008-10-05 11:13:07

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Different behavior of linklist and section_list

If my memory serves correctly the linklist tag uses the “plainlinks” form template by default so go there and remove the <br /> tag or create a new form of your own and add the “form” attribute to the linklist tag. More info.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2008-10-05 15:01:22

hurrlipurr
New Member
From: Giessen, Germany
Registered: 2008-10-05
Posts: 2

Re: Different behavior of linklist and section_list

Works fine. Thank you!

Offline

Board footer

Powered by FluxBB