-
-
Notifications
You must be signed in to change notification settings - Fork 213
Feature: Sortierung und Suche von Dateien in Dateiverwaltungsansicht #7196
Comments
|
Related: #5876 |
|
+1 |
|
👍 Da das auslesen von großen Dateimengen lange dauern kann, sollten sich die Suchergebnisse stückweise aufbauen. Z.B. erst die Ergebnisse des DBFS, dann zusätzliche Einträge aus dem aktuellen Ordner (ggf. stückweise, je nach Dateimenge), dann eine Ebene tiefer usw. Das hat den Vorteil, dass sofort Ergebnisse erscheinen sowie noch nicht erfasste Dateien so auf mit berücksichtigt werden können. |
Die Standardsortierung von Contao ist nicht alphabetisch. Sortiert wird mit natsort (php.net: "Diese Funktion implementiert einen Sortieralgorithmus, welcher alphanumerische Zeichenketten reiht, wie es auch ein Mensch tun würde.") Ich habe in meiner Dateiverwaltung viele Dateien mit Spielerbildern nach dieser Syntax: Beispiel meiner erwarteten Sortierung, wobei ich statt des Jahrs auch gern mal JJJJMM oder JJJJMMTT verwende. Hier sehe ich die Dateinamen in ihrer alphabetischen als auch zeitlichen Reihenfolge aufgelistet: Contao sortiert aber anders, weil natsort ja annimmt, es müßte die Zahlen natürlich einsortieren: Das hat für mich nichts mit alphabetisch mehr zu tun. Wenn schon alternative Sortierungen als Feature nötig wären, dann bitte doch auch PHP-sort mit dem Flag für Groß- und Kleinschreibung. |
|
@Samson1964 danke für den Hinweis - das war mir so nicht bekannt. Ich würde meinen Vorschlag dann einfach so ergänzen, das man alle "sinnvoll" anwendbaren http://php.net/manual/de/array.sorting.php Funktionen nutzen kann. |
|
The filesystem search could be realised via ajax, so the tree build itself partially while each directory is scanned in a separate ajax request. This would result in "a lot" ajax requests, but should be realy performant and the user see that the search is running (ajax loader animation). |
|
We've had an ajax load in Isotope 1 and it was definitely NOT performant :D |
|
+1 |
|
+1 |
|
Part 1 (searchable file picker) implemented in contao/core-bundle@5f13608. |
|
Part 2 (searchable file manager) implemented in contao/core-bundle@7460493. |
|
Now here are the limitations:
|
|
Wouldn't it be "way easier" to implement a javascript search on the list element names? Or would collapsed nodes be a problem? |
|
Collapsed nodes would be a problem for sure. |
|
I think it's strange that it also searches for folders. Imagine this situation:
If you search for "layout", what do you expect to be shown? Personally, I expect only |
|
I would expect the following:
But I don't know if the (regex-based) filter can be tuned to be this exact. |
|
We could also develop a separate view, which only shows the following:
However, I doubt that this can be done with the current tree. |
|
Of course, the two posts above only apply to searching for the name. If you search for the file path, it is correct to show |
|
Overworked implementation in contao/core-bundle@33002c6. |
As editor it would be great to sort and search in the fielmanger.
Currently the situation is a little bit unsatisfying, editors are familiar with search and sort function on file system - even in windows. And baby, its 2014!
So it would be a minor improvement for the great contao DBFS system if its possible to do some, search, filter and sorting in $future.
Feature
Sorting
Filter
Search
Ideas
DBFS search
DBFS search + filesystem
The text was updated successfully, but these errors were encountered: