Hi there
I’m having an issue with the showcase section of the projects page. No matter what i try it keeps re-arranging itself on each refresh. I have tried to change the sortby settings to date but nothing happens.
If i set the numbers of the folders in the /projects section it stays the same until i refresh and then all the projects are ordered differently.
Am i missing something here?
Any help is appreciated.
Hi, thanks. Sorry, yes in the panel if i edit the projects section to re-order the project pages when i drag one the other pages move too, nothing stays put! The showcase code is below and the blueprint underneath that.
That just applies to the order in which the subpages are displayed in the sidebar of the Panel. It does not affect the sort order of the folders themselves.
By default, subpages are sorted by a prepended number (1_, 2_ etc, visible pages). If you drag and drop the subpages, you change their folder numbers in the filesystem. That will affect the order in the frontend, depending what you sort by in your template.
Folder numbering is controlled via the num option in your blueprint. Instead of the default numbering, you can also sort by date or alphabetically.
Hi ok, so adding sort to the blueprint will keep the panel order in place, thank you. But how do I keep the frontend order fixed on the actual webpage?
I’ve names the folders with the prepended number but they still don’t stay in that order for some reason. Sorry to be a pain. Thank you
So that is according to the order in the file system (1_ to x_). If you change that order by dragging and dropping the projects around in the Panel, the prepended numbers will change and so will the order of your projects in the frontend.
that is the same code as my snippet. What happens is if i edit a project, in any way, simply going into a project in the panel and saving the page, when i go back to the showcase (projects) page the order of the showcase has altered. It is becoming completely frustrating but i’m meditating!
I just don’t know why the order won’t stay put. I’ve used Kirby for other sites and this has never happened.