Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-11-15 13:56:50

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

File download and <br>

My output for file downloads includes tons of break tags.
My code looks like:

—-content
<txp:file_download_list sort=“category”>
<txp:if_different>
<txp:file_download_category />.
</txp:if_different>
<txp:output_form form=“file_download_list” />
</txp:file_download_list>

—-file_download_list form
<div class=“section”>
<span><txp:file_download_name /></span>
</div>

which produces:
<div class=“entry-content”> <p><br />
<br />
guidelines.<br />
<br />
<div class=“section”>
<span>svncheatsheet-1.0.1.pdf</span>
</div><br />
<br /><br />
<br />
<div class=“section”>
<span>Thank you card final2.pdf</span>
</div><br />
<br /><br />
<br />
images.<br />
<br />
<div class=“section”>
<span>421729663_eacb60ee34.jpg</span>
</div><br />
</p>
</div>

Where is all the extra tags coming from?
Thanks
Rich

Offline

#2 2009-11-15 15:10:56

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

Re: File download and <br>

OK – I notice when I use this:

<txp:if_different><txp:file_download_category /></txp:if_different>

TXP adds some break tags after the category.
Any ideas whats causing this?

Offline

#3 2009-11-15 15:13:09

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: File download and <br>

Use <txp:file_download_list break="">. The default value for the break attribute is br (file_download_list).

Offline

#4 2009-11-15 15:31:44

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

Re: File download and <br>

Ooh, I see – its the file_download_list loop.
Clears it up – thanks!

Offline

Board footer

Powered by FluxBB