I installed the Skeleton Package Agency and played around with it a bit.
I can’t sort the sections. Neither manually nor via the admin area. The order always remains the same. I tried manual sorting in the admin area via “Numerical folder prefix” as well as via the file “user / pages / 01.home / modular.md” the order of the modular elements does not change.
Cache was also emptied and disabled several times.
What am I doing wrong or where exactly do I have to look? So far I could go to such changes via “Numeric Folder Prefix”.
TBH, I don’t really remember. I encountered this behaviour while getting to know Grav and then, when was finalising the content for my page, it just sorted out. My best guess - some combination of ordering modules and saving content fixed it
What doesn’t work is if I want to change the order of the modular pages using Folder Numeric Prefix. This is not taken over in the modular.md.
Admin, can only do so much… It’s a thin wrapper around everything Grav has to offer when using an IDE, and/or terminal. And it adds complexity…
Remove the custom section in modular.md. It will then order by default, which is the order of the module folders on disk. See the docs: page collections/ordering
What irritates me is…
I’m afraid you’re gonna have a lot of irritation in life if you remain building apps…
Just to put my two cents in as I am going through my first theme to get a proper understanding of how grav works.
@steppo When you change the order of modular.md, the order of the sections will change as if you click the site menu items, you will notice it will now jump (smoothly) to the anchor points of each module , rather than a smooth scroll , passing through each item in the set / controlled order of the site menu.
Its more of astheics thing but pamtbaau pointed out the site.links in the code which I had not encountered before.
So to change the order, you need to change the site.yaml and the modular.md and make them match to achieve what I think you are trying to do.