- 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
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
# ===================================
|
|
# List Behavior Config
|
|
# ===================================
|
|
#
|
|
# The PHP list showed the top-level entries of one menu picked in a toolbar
|
|
# select; here every entry is listed, the menu filter picks the menu, and
|
|
# the reorder page edits the tree.
|
|
|
|
# Model List Column configuration
|
|
list: ~/plugins/golem15/menu/models/menuentry/columns.yaml
|
|
|
|
# Model Class name
|
|
modelClass: Golem15\Menu\Models\MenuEntry
|
|
|
|
# List Title
|
|
title: golem15.menu::lang.models.menuentry.label_plural
|
|
|
|
# Link URL for each record
|
|
recordUrl: golem15/menu/menuentries/update/:id
|
|
|
|
# Message to display if the list is empty
|
|
noRecordsMessage: backend::lang.list.no_records
|
|
|
|
# Records to display per page
|
|
recordsPerPage: 20
|
|
|
|
# Options to provide the user when selecting how many records to display per page
|
|
perPageOptions: [20, 40, 80, 100, 120]
|
|
|
|
# Displays the list column set up button
|
|
showSetup: true
|
|
|
|
# Displays the sorting link on each column
|
|
showSorting: true
|
|
|
|
# Display checkboxes next to each record
|
|
showCheckboxes: true
|
|
|
|
# The menu filter (config_filter.yaml)
|
|
filter: config_filter.yaml
|
|
|
|
# Toolbar: reorder (config_reorder.yaml), create and delete selected
|
|
toolbar:
|
|
buttons: [reorder, create, delete]
|
|
search:
|
|
prompt: backend::lang.list.search_prompt
|