Below is an overview of file organization in Tridion, and why we recommend adding triple digits in front of your content.
Like most computer systems, Tridion uses standard alphanumeric patterns for organizing components and pages. This means that when you view a component or page in the system, the items in a folder will organize themselves based on what the filename starts with. Numbers always come first (0-9), followed by alphabet letters (A-Z).
So for example, if you had the following items in a Tridion folder:
Tridion would organize them like this:
As mentioned above, the reason why they organize themselves like this are because items named with numbers come first, and they proceed in order of the first number in the file name (starting with 0, ending with 9). Items named with alphabet letters come after numbers, and those organize themselves in A-Z fashion.
When it comes to your website's top and left menu navigation, Tridion will generate the navigation based on how items are organized in the pink 050 [Your Website] > root > structure group folders.
If you have the following pages in a structure group:
Then Tridion will organize them in alphanumeric order, like this, and this is how they'll appear in your navigation:
But what if you want "Starting a Business" to be first? The way to do this is to insert numbers before the content, so you can control the order of the items. To reorder these items, you should name them like this:
Tip: Tridion is programmed to ignore any numbers at the start of a filename, so these won't show up in your navigation.
One thing clients often ask is why do we use triple digit numbers? The reason is because it leaves you more wiggle room for inserting new content into the middle later on, without having to renumber everything.
Using the examples provided above, say later on you decide you want to add Exporting and Trade to the pages listed above, and you want it to come before Business Guidebooks in the list.
To insert it without renaming everything, you can simply name it "035 Exporting and Trade." This will insert it between 030 Finding Workers and 040 Business Guidebooks.
The reason why we don't number in 10, 20, 30, etc. is because you'll find you quickly hit 100 in some of your folders that have a lot of sub-folders or pages. When this happens, if you're using a two-digit numbering system, then Tridion will put all the ones together before moving to the twos. For example, your content would organize like this:
This will impact your navigational order, too. Content that you want to come after 90 will be toward the top instead.
Whatever system you develop for ordering content on your website, we recommend that you repeat the same structure in the other part of the publication. So, for example, whatever sub-folders and pages you build in the 050 [Your Website} > root area, we recommend that you replicate those same folders and sub-folders in the 020 [Your Website] Content publication. This will make it a lot easier for you to find things.