Page 1 of 1

folders in selected order

Posted: 25 Feb 2009, 12:10
by kimco
hello,

I would always keep the files in a specific order. Is there a trick to keep the files in a selected order

http://www.honoriscosa.com/folders.jpg :o

Thank you

Posted: 26 Feb 2009, 11:54
by Nick
Yes, for now you have to rename folders on disk in desired order:

1_Folder
2_Folder

etc..

Titles will stay the same. Only physical path gonna change.

Posted: 27 Feb 2009, 01:35
by kimco
thank you :wink:

Posted: 09 Mar 2009, 11:40
by lowray1975
I wanted to make a tutorial on how do my folder sorting, although time continues to escape me. Here's a quick overview:

The "root" folders (the folders that are located in the content directory), I give a four digital number (with number padding - "1" is "0001") as the prefix to the folder name. Folders with a lower number will appear first in the list.

For example:
0001_FolderABC
0010_FolderPurple

Based on old programming techniques, I usually leave gaps in the numbering so I can add additional folders between folders in the future. So in the above example I could put 0005_FolderGreen in between without having to rename everything

For sub-folders I use one of three techniques.

The first is just use the default sorting (which is alphabetical). This works best for the names of people, events, years or locations.

The second is the same sorting used as the root folders. This is good when I want to folders to be listed in an order that I want to define.

The third is based on date and uses almost the same format as above. Instead of using a number "0010" I use the date "0328" for March 28th. So if I wanted to post pictures from my birthday, I would use the folder name "0328_BirthdayJosh". I have subfolders for each year which is why I don't include the year in the prefix, although you could if you needed to (20090328_BirthdayJosh).

When using this method make sure to change the title of each folder from within the admin section. Also, I try my best to avoid using spaces in the folder names as I personally can't stand seeing %20 in the URL.

Hopefully this helps someone! Maybe it will become a sticky ;)

Posted: 09 Mar 2009, 17:35
by Nick
Done. Maybe I should split the thread though.

Posted: 09 Mar 2009, 17:45
by lowray1975
Woohoo!
pain wrote:Done. Maybe I should split the thread though.
I agree, maybe a separate post...

Pain

Posted: 21 Dec 2009, 03:22
by SofTones
I want you should change your name to maybe "exquisite" Pain ??? 'cause I think you very good, you explain things so very well and make people understand easily, xie xie wodepungyou

Posted: 22 Dec 2009, 10:26
by Nick
Hehe, thank you, not sure I am that good at explaining things really.

Posted: 09 Aug 2010, 07:34
by Metrik
It's worth mentioning that:
When you rename a folder, all links pointing to your photo or gallery will fail. Also Google's index (used for search) will now refer to non-existing locations on your web site. Just a friendly reminder :wink: