Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-04 13:41:57

jmk
Member
Registered: 2006-09-04
Posts: 49

file_download_list bug

i use the latest svn built (r1794) (but it also happend before that) and i have the following issue:

page template

txp:file_download_list limit=“0” sort=“description asc” />

file form

txp:file_download_link>
txp:file_download_description />
txp:file_download_name /> [txp:file_download_size format=“auto” decimals=“2” />]
/txp:file_download_link>
br />

gives me only my very first file, but as many times as i have files.

the correspondig trace looks like this:

— snip —

txp:file_download_list limit=“0” sort=“description asc”/> [SQL (0,000262): select id, filename, category, description, downloads from txp_file where 1 order by description asc ] [SQL (0,000096): select Form from txp_form where name=‘files’] [Baustein: files] txp:file_download_link> txp:file_download_description/> txp:file_download_name/> txp:file_download_size format=“auto” decimals=“2” /> /txp:file_download_link> txp:file_download_link> txp:file_download_description/> txp:file_download_name/> txp:file_download_size format=“auto” decimals=“2” /> /txp:file_download_link>
[ ~~~ secondpass ~~~ ]

if that did not make sense, let me give you an example:
i have files a.pdf, b.pdf and c.pdf

but on my download page i see:
a.pdf [10kb]
a.pdf [10kb]
a.pdf [10kb]

if that was known, please excuse me, otherwise, does anyone have an idea how i could fix it?

thanks,
jmk

ps: oh, i forgot – i totally love textpattern! :)
pps: how do i make it a little more readable?

Last edited by jmk (2006-09-04 13:50:34)

Offline

#2 2006-09-05 00:05:42

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

Re: file_download_list bug

First of all limit=“0” is invalid. Get rid of that. Now what happens?

Offline

#3 2006-09-05 10:30:04

jmk
Member
Registered: 2006-09-04
Posts: 49

Re: file_download_list bug

well, i changed it to the absolut minimum:

——————<br />
txp:file_download_list /><br />
——————<br />

<br />

—————— trace ——————<br />
txp:file_download_list/> [SQL (0,000214): select id, filename, category, description, downloads from txp_file where 1 order by filename asc limit 0, 10] [SQL (0,000089): select Form from txp_form where name=‘files’] [Baustein: files] txp:file_download_link> txp:file_download_description/> txp:file_download_name/> txp:file_download_size format=“auto” decimals=“2” /> /txp:file_download_link> txp:file_download_link> txp:file_download_description/> txp:file_download_name/> txp:file_download_size format=“auto” decimals=“2” /> /txp:file_download_link>
[ ~~~ secondpass ~~~ ]

and as you can see, it is still the same

Offline

#4 2006-09-05 11:04:42

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: file_download_list bug

Can you please double check that you’ve updated to r1794 correctly? I was able to reproduce prior to that, but it works fine for me now.


Alex

Offline

#5 2006-09-05 12:16:55

jmk
Member
Registered: 2006-09-04
Posts: 49

Re: file_download_list bug

you were right, the last update seems to have gone somehow wrong… all is well now!

thank you for your help.

regards,
jmk

Offline

Board footer

Powered by FluxBB