Search…

X3 Photo Gallery Support Forums

Search…
 
kimco
Experienced
Topic Author
Posts: 55
Joined: 03 Oct 2006, 18:12

folders in selected order

25 Feb 2009, 12:10

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

26 Feb 2009, 11:54

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.
firedev.com
 
kimco
Experienced
Topic Author
Posts: 55
Joined: 03 Oct 2006, 18:12

27 Feb 2009, 01:35

thank you :wink:
 
lowray1975
Experienced
Posts: 137
Joined: 26 Jul 2008, 08:04

09 Mar 2009, 11:40

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 ;)
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

09 Mar 2009, 17:35

Done. Maybe I should split the thread though.
firedev.com
 
lowray1975
Experienced
Posts: 137
Joined: 26 Jul 2008, 08:04

09 Mar 2009, 17:45

Woohoo!
pain wrote:Done. Maybe I should split the thread though.
I agree, maybe a separate post...
 
User avatar
SofTones
Experienced
Posts: 146
Joined: 19 Dec 2009, 08:46

Pain

21 Dec 2009, 03:22

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

22 Dec 2009, 10:26

Hehe, thank you, not sure I am that good at explaining things really.
firedev.com
 
User avatar
Metrik
Experienced
Posts: 41
Joined: 08 Jul 2010, 17:20

09 Aug 2010, 07:34

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: