Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

Ordering of page.collection pages in admin, normal mode

admin

Started by João Ribeiro Vaz 5 years ago · 1 replies · 551 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 Ton Haarmans, 5 years ago
13 1139 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 63 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 137 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 112 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 131 7 months ago