I’ve read through a bunch of older articles here in the forum, and have read the article about sorting of subpages, yet I am trying to wrap my head around the following scenario:
I have a client who generates his project numbers in the following format: Group + Year + Ascending number + project name, resulting in an (offline) folder structure like this:
021701-project-a 021702-project-b 021703-project-c
Now I am trying to mimic this folder structure in Kirby. By prepending a 0- to the folder name (which I find a bit cumbersome to be honest):
0-021701-project-a 0-021702-project-b 0-021703-project-c
and my ‘pages’ settings like this:
pages: num: zero sort: false
Kirby outputs the desired order on the frontend – so far, so good. But while the folder names remain untouched, the leading number still gets stripped in the Panel Sidebar, so it reads
Hence my questions:
Is there any way to display the leading number in the Panel Sidebar so it reads ‘021701 project a’ (or even 0-021701-project-a)?
Is there any way to reverse the sorting order in the Panel, so the latest entries are on top? (sort: flip renames the whole folder structure as I found out – not what I want)
Is there a more elegant way to tackle his topic (e.g. not having to prepend 0- to folder names)?
I’d appreciate any pointers!