Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Ordering of page.collection pages in admin, normal mode

admin

Started by João Ribeiro Vaz 6 years ago · 1 replies · 1032 views
6 years ago

Hi! Grav newbie here with a question: Is there a way to have in the admin a drag-and-drop-like ordering of a page.collection?
I have listing pages that show specific a taxonomy from the whole website and would like to order these manually / custom (not sure what the Grav name uses for this) in the admin in normal mode.
The page.collection is defined in the page frontmatter, and it’s not required to be editable in admin normal mode.

Thank you!

6 years ago

I believe you'll have to add order_manual on each page frontmatter (docs aren't very clear on this) and use

YML
order:
  by: manual
  dir: asc

Or maybe header.X option?

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Anna, 2 days ago
2 53 16 hours ago
Forms & Blueprints · by Anna, 3 days ago
7 82 16 hours ago
Forms & Blueprints · by Anna, 1 week ago
5 186 6 days ago
Forms & Blueprints · by TomW, 1 month ago
3 379 1 month ago
Forms & Blueprints · by Japhy, 2 months ago
2 595 2 months ago