File manager: Sorting files in a folder

Permalink
Folders are definetely a useful addition to concrerte5.8 but what about sorting(manually) files in a folder?

dimger84
 
hhockx replied on at Permalink Reply
hhockx
As far as I know it's not possible to sort your images in a folder manually. You can use a fileset to do that. But I've just found out that -if you've got images in a folder- and put those images in a fileset sorting wil not work...???
dimger84 replied on at Permalink Reply 1 Attachment
dimger84
It seems that it's possible after all, but not implemented in the filemanager.

A simple solution would be to create a single page with the following code

<div id="reorderAlbum"></div>
<script type="text/javascript">
        $(function () {
            $('#reorderAlbum').concreteTree({
                'treeNodeParentID': ****parentFolderID****
            });
        });
</script>


* Dont forget to require the following asset :
$this->requireAsset('core/topics');


In this way you can manually manipulate the displayOrder attribute of files and folders.