Files
sm-menu-plugin/controllers/menuentries/config_reorder.yaml
Jakub Zych 08f99b8aad feat(17-04): menu plugin admin with registry types, URL checks and tree reorder
- golem15.menu plugin, tables golem15_menu_menus and golem15_menu_menu_entries with the PHP columns plus a nullable url_pattern (D-02)
- MenuEntry BeforeSave ports PHP beforeSave: nest columns 0, menu from the parent, sort_order after the menu's last
- entry type dropdown: url, divider and the signpost registry types; reference depends on type through signpost.ReferenceOptions
- URL scheme allowlist (errors.url_scheme), target _self or _blank, menu and parent cycle checks
- menu filter, toolbar reorder/create/delete and config_reorder.yaml partitioned by menu
- navigation Menus with Menus and Menu entries, permission golem15.menu.manage_menu, en and pl phrasebooks
- TestMenuAdminSmoke
2026-10-12 17:30:50 +02:00

28 lines
685 B
YAML

# ===================================
# Reorder Behavior Config
# ===================================
#
# The PHP reorder_config.yaml, scoped to one menu through the partition: the
# page lists the entries of one menu as a tree and saves parent_id and
# sort_order. The PHP toolbar partial is not supported.
# Reorder Title
title: golem15.menu::lang.models.menuentry.reorder_title
# Attribute name
nameFrom: title
# Model Class name
modelClass: Golem15\Menu\Models\MenuEntry
# Tree columns
parentColumn: parent_id
sortColumn: sort_order
# One menu at a time
partition:
column: menu_id
relation: menu
nameFrom: name
label: golem15.menu::lang.models.menuentry.menu