getgrav / getgrav/grav-plugin-admin

Question: Custom Order of Modular Content

Open
#935 8 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

I am aware of the possibilities to order the modules in a custom manner with YAML like this:

content:
items: '@self.modular'
order:
by: default
dir: asc
custom:
- _showcase
- _highlights
- _callout
- _features

But is there a way to add a custom order for the modules in the admin panel, so that a content-editor can create an order without editing a yaml-file? A drag & drop with something like this would be nice:

content:
type: order
items: '@self.modular'

In most cases, the predifined standard-ordering (date, prefix, folder) does not make much sense for modular content and one-pager.

Contributor guide

Open the contributing guide

Research direction

The issue does not name files or tests; begin by reviewing the admin panel's modular-content ordering flow and the existing YAML ordering configuration. Define the drag-and-drop editor behavior and verify that saved ordering is reflected in one-page modular content without manual YAML edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
content, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.