Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-05 16:09:47

minusf
Member
Registered: 2005-02-15
Posts: 104

[textile] problems with html generated by txp:file_download_list

i am having problems with the following snippet

h2. download

<txp:file_download_list form="files" class="class" category="cat" wraptag="ul" break="li" sort="filename desc" />

generates invalid xhtml:

<h2>download</h2>

<p><ul class="class">
<li><a href="http://site/file_download/19/file.gz&">file.gz</a> [604KB] (downloaded: 6995x)</li>
<li><a href="http://site/file_download/4/file.gz&">file.gz</a> [604KB] (downloaded: 1269x)</li>
</ul></p>

the problem is the additional <p>

i know if i put a space in front of <txp:file_download_list> the extra
paragraph goes away. is this how it should be done? for nontechnical
users this is dark magic… the validation warning is not a big issue, but
you know how it is… :) why not make it without warnings if possible…

Last edited by minusf (2007-10-05 16:13:59)


we is experts™

Offline

#2 2007-10-05 16:13:07

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [textile] problems with html generated by txp:file_download_list

This is because of Textile. You can alternately do:

notextile. <txp:file_download_list category="cat" sort="filename desc" form="files" wraptag="ul" class="class" break="li"  />

Offline

Board footer

Powered by FluxBB