Couple of feature requests

5 replies [Last post]
jaybee
Offline
Joined: 08/14/2009
Status: 
Answered

Hi Leighton,

Can you amend the order of the drop-down list of pre-existing files, so that the directories are in a-z sequence. Currently they are z-a.

Also, when adding a new file plan, can you inherit (clone) details from a previous file plan (excluding name etc) so we don't have to re-customize the role granted, the email settings etc, each time?

Thanks

Leighton Whiting
Offline
Joined: 06/02/2009
Jaybee, I have added in both

Jaybee,
I have added in both of these features and they will be in the next release. I'll be releasing it in about 20 minutes.

Sincerely,
Leighton Whiting

benklocek
Offline
Joined: 07/30/2010
Sort order on select dropdown for File Plans in CCK field?

I'm seeing odd sorting when selecting a file plan to include in my MS_File CCK field. I was expecting either alpha (a-z) or the order I have dragged them into on the /admin/build/ms_files page.

Leighton Whiting
Offline
Joined: 06/02/2009
Ben, Files are sorted

Ben,
Files are sorted according to their plan id when it comes to select boxes. This is because the forms api sorts select boxes by key, and the key is the plan id.

Sincerely,
Leighton Whiting

benklocek
Offline
Joined: 07/30/2010
Select an Existing File Sort order

In 2.4, the "Select an Existing File: "dropdown is not ordered properly for me.

I'm not sure what kind of ordering it has.

I put my files in ms_files, and also have a few folders in there.

Example listing that is returned:

ms_files/lecture-set-m/sss/file-1.mp3
ms_files/lecture-set-m/sss/file-5.mp3
ms_files/lecture-set-m/sss/file-3.mp3
ms_files/lecture-set-m/mmm/file-1.mp3
file-4.mp3
file-1.mp3
file-7.mp3

How is this list generated? On my dev (local), things seem to be ordered correctly. It's on the live site where it's wonky.

EDIT:
I added

ksort($raw_files);

to line 1804 of ms_files.module to get it behaving correctly.

Leighton Whiting
Offline
Joined: 06/02/2009
Thanks for pointing that out,

Thanks for pointing that out, I have added the fix so it will be in the next version.

Sincerely,
Leighton Whiting

Twitter Feed