Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-05-03 21:27:03

joel
Member
Registered: 2004-11-26
Posts: 162

[SOLVED] Sorting file_download_list doesn't work?

Hi,

I’m using txp 4.2.0 and I have problems with sorting mp3’s in an audio playlist. Here is my code:

<txp:if_custom_field name="audio">
<div class="flower_soundplayer">
   <ul>
<txp:file_download_list category='<txp:custom_field name="audio" />' limit="999" sort="filename asc" break="">
      <li><a href="<txp:site_url />files/<txp:file_download_name />" title="<txp:file_download_description />"><txp:file_download_description /></a></li>
</txp:file_download_list>
   </ul>
</div>

The uploaded files have filenames like:

  • 1 title of the song.m4a
  • 2 another song.m4a etc.

I’ve also tried to change the format of the numbers to 01, 02 etc and then replacing the files but the filename doesn’t get updated?

Is this a known issue or am I doing something wrong?
Thanks!

Last edited by jsoo (2011-05-03 21:40:59)

Offline

#2 2011-05-04 12:36:07

joel
Member
Registered: 2004-11-26
Posts: 162

Re: [SOLVED] Sorting file_download_list doesn't work?

Anyone?

Offline

#3 2011-05-04 13:48:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,257
Website GitHub Mastodon Twitter

Re: [SOLVED] Sorting file_download_list doesn't work?

Hi Joel

File names are stored in the db don’t change so as not to break downloads.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2011-05-04 18:40:48

joel
Member
Registered: 2004-11-26
Posts: 162

Re: [SOLVED] Sorting file_download_list doesn't work?

Thanks! That solved it!

Offline

Board footer

Powered by FluxBB