Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Number of digits in folder numeric prefix?

admin

Started by Ivan Voras 6 years ago · 2 replies · 1188 views
6 years ago

I've imported my existing blog content into Grav, and there are more than 100 posts already in there. The old blog posts were imported with numeric prefixes which are 3 digits in length.

For my new posts, Grav uses 2-digit prefixes, which clashes with the ordering of the posts. I.e. I have folders named:

  • 009-something
  • 01.something-new
  • 010-something-old

where the middle one in this example was created by Grav.

Is there a way I can tell Grav how many digits to use for the prefix?

6 years ago

Interesting question. and what happens anyway after 99 pages, what is the automatic numbering?

6 years ago

My assumption would be, that numbered pages should be just for specific cases. If you have so many pages under a single page, they shouldn't be numbered, but rather ordered by date or name. Numbered pages are specifically for custom order IMO and I can't imagine a case where you'd want to have custom order for 100 or more pages

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 5 days ago
1 102 5 days ago
Support · by webmasterodp, 3 weeks ago
4 285 3 weeks ago
Support · by nwhitfield, 3 weeks ago
2 255 3 weeks ago
Support · by stell, 1 month ago
5 521 4 weeks ago
Support · by gravinator, 2 months ago
5 678 4 weeks ago