Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Ordering of page.collection pages in admin, normal mode

admin

Started by João Ribeiro Vaz 6 years ago · 1 replies · 774 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 Japhy, 7 days ago
0 173 7 days ago
Forms & Blueprints · by FrViPofm, 3 weeks ago
5 309 3 weeks ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2298 8 months ago
Forms & Blueprints · by Hugo Oliveira, 9 months ago
0 760 9 months ago
Forms & Blueprints · by Flachy Joe, 10 months ago
9 844 10 months ago