Folder Naming Issue

I have an issue with folder naming.

I have over 100 pages/folders in a subfolder, and I named the folders 001.xxx to 1xx.xxx thinking it would work OK. However, when I edit 001.xxx in Grav and save the page, Grav creates a new folder with the name 01.xxx. And when I remove the leading 0’s on the folder names and name the 001.xxx folder 1.xxx and edit and save it in Grav, Grav creates a new folder and names it 01.xxx.

What do I need to do to resolve this issue?

Are the number of pages/folders limited to 99?

I suggest that Grav makes a rule that all folder order numbers before the dot have a fixed number of digits. Most likely the number of digits before the dot would be 1, 2 or 3. I doubt if it would be practical to have over 999 folders. Grav could easily determine that number by looking at any folder name. Apparently, Grav currently assumes the number of digits before the dot is 2 which limits the number of folders to 99.

Maybe Grav is not powerful enough to handle more than 99 folders. I don’t know.

It appears that I just need to make sure there are at least two digits in the folder order number. I tried a three digit number, and when I saved it in Grav, it appears to work OK. That’s good.

I think there was also another topic about this, but can’t find it quickly

@Karmalakas I am using Windows 11, and the Bulk Rename Utility works great to modify folder names. I know there are other ways of doing it too. You could fairly easily modify the prefix numbers to work correctly. From what I can tell, it looks like Grav needs two digits for 1-99, so 1 needs to be 01, etc. but it seems like 3 digits work for 100-999. I could be wrong, but what I’ve done seems to indicate that is true.

Could you share a use case for such a huge amount of specifically ordered pages?

I do not know precisely what you need to do, but I had all my page folders in one folder and then used the Bulk Rename Utility to modify the prefix numbers. You can select which folders you want to modify. For example, if you had some folders that have 3 digits in the prefix and some with 2, you could select the ones with 2 and add an extra 0 to them to make them all 3 digits. Then you could renumber all of them if you need to. In my case, I then went back and deleted the first 0 on the numbers from 1 to 99 because Grav, for some reason, only wants two digits for those numbers. But seems to be OK with 3 digits for numbers 100 to 999.

Somehow you need to have the page folders in the order you want them. In my case, I was lucky because all the folder names were in alphabetical order. File Explorer automatically puts all the folders in alphabetical order. You might need to add prefixes to the folder names to get them in the order you want.

I’m not asking how you did it :slightly_smiling_face: I’m asking why would you need such a huge amount of pages ordered so specifically :face_with_monocle: I honestly can’t imagine a scenario where this would be required

We have a home in a community of around 1500 residents with a Home Owners Association (HOA). I’ve created a number of Google Sites in an effort to help the residents of that community. However, Google Sites does not allow one of their sites to be private unless all the users have a Google account which I don’t like because some residents do not want to create a Google account. That’s why I’m trying to convert the Google Sites into a site that I can keep private without any restrictions. One of the sites is a list of service providers that have been recommended by other residents. Service providers are like electricians, plumbers, handymen, doctors, lawyers, etc. I have about 130 categories of service providers and I need a page for each category.

Sorry, but this still doesn’t explain why would you need these service providers to be listed in a specific custom order. Can’t they be ordered alphabetically or by date when they were added?

The natural, logical way to order the categories is alphabetically to make it as easy as possible for the user to find what they are looking for. Within each category, each service provider is also listed alphabetically.

You don’t need numbered ordering for this

My goal is to create an initial version of a website as soon as possible given the fact that I have no website coding experience or knowledge so I try to find one way to do what I want to do that will work in all cases. If I always number page folders to determine order, then is it true that I don’t need to know how to do the ordering in any other way? By the way, in my case, not all the page titles are in alphabetical order even though most are.