Reihenfolge der Bilder richtig aber nicht natürliche Zählung

12 years 6 months ago #3947 by starcraftler
Hi,

habe in meinen Ordnern jeweils die Nummerierung im "Natürlichen Stil" also 1, 2, 3, 4, ....10 ,11 ,... ,20 , 21 usw.
Wenn ich nun aber sage in den Einstellungen: No, order ascending. kommt nicht das gewünschte Ergebnis.
Setze ich random=2 im Paramenter und erzwinge im PHP Code dadurch sort($images); wird die Reihenfolge aber "unnatürlich" , aber dennoch korrekt (eben so wie er sortiert nach Algorithmus) dargestellt.

also mit sort() kommt: 0, 1, 10, 11, 13, 2 ,20 ,21 .... und das ist ja nicht wirklich "aufsteigend" sortiert.......
ich möchte das ganze natürlich aufsteigend, wie es in den filenamen ja auch steht. also dachte ich mir ich probiere mal natsort(); oder sort($images, SORT_NUMERIC) aus. Jedoch beides ohne Erfolg. Groß Funktionen umzuschmeisen oder reinzuschreiben habe ich leider keine Zeit gehabt.

Wie kann ich das am besten lösen, dass meine ca 160 Bilder pro Ordner in der "richtigen Reihenfolge" erscheinen ?

Please Log in to join the conversation.

12 years 6 months ago #3955 by Viktor
Please log in to see the response. Attention: You need a valid subscription to activate an account.

Kubik-Rubik Joomla! Extensions

Please Log in to join the conversation.

12 years 6 months ago #3962 by starcraftler
Please log in to see the response. Attention: You need a valid subscription to activate an account.

Please Log in to join the conversation.

12 years 6 months ago #3969 by Viktor
Please log in to see the response. Attention: You need a valid subscription to activate an account.

Kubik-Rubik Joomla! Extensions

Please Log in to join the conversation.

Time to create page: 0.145 seconds