Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
we wonder if it's possible to sort the files and folders in the Dropdownfield to apply existing files/folders to a page. They're currently sorted by ID / upload date and it's quite annoying to look for files if the folder is really crowded.
Thanks for help!
I am not completely sure what you are trying to acheive but you will need to change how you would like the $array of directories to be displayed before setting the DropdownField.
$array = \\Organised the order of your array
$field = new DropdownField(
Hope this is a starting place for you.