Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Ordering of page.collection pages in admin, normal mode

admin

Started by João Ribeiro Vaz 5 years ago · 1 replies · 707 views
5 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!

5 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 FrViPofm, 5 days ago
5 109 5 days ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2123 7 months ago
Forms & Blueprints · by Hugo Oliveira, 8 months ago
0 607 8 months ago
Forms & Blueprints · by Flachy Joe, 9 months ago
9 697 9 months ago
Forms & Blueprints · by Augustus, 10 months ago
7 744 10 months ago