- 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
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
plugin:
|
|
name: Menu
|
|
description: Menu strony z linkami, separatorami i pozycjami treści.
|
|
permissions:
|
|
manage_menu: Zarządzanie menu strony
|
|
models:
|
|
general:
|
|
id: ID
|
|
created_at: Utworzono
|
|
updated_at: Zaktualizowano
|
|
menu:
|
|
label: Menu
|
|
label_plural: Menu
|
|
name: Nazwa
|
|
code: Kod
|
|
css_class: Klasa CSS
|
|
is_active: Aktywne
|
|
menuentry:
|
|
label: Pozycja menu
|
|
label_plural: Pozycje menu
|
|
menu: Menu
|
|
menu_comment: Pozycje z pozycją nadrzędną należą do jej menu.
|
|
parent: Pozycja nadrzędna
|
|
type: Typ
|
|
type_url: Link
|
|
type_divider: Separator
|
|
title: Tytuł
|
|
url: URL
|
|
url_comment: Dla pozycji typu Link. Zacznij od http://, https://, mailto:, tel:, / lub #.
|
|
reference: Odnośnik
|
|
reference_comment: Rekord, do którego prowadzi pozycja, dla typów, które go wymagają.
|
|
url_pattern: Wzorzec URL
|
|
url_pattern_comment: Użyj składni :placeholder, np. /blog/:slug
|
|
code: Kod
|
|
icon: Ikona
|
|
css_class: Klasa CSS
|
|
target: Otwieraj w
|
|
target_self: Tej samej karcie
|
|
target_blank: Nowej karcie
|
|
is_published: Opublikowane
|
|
reorder_title: Zmiana kolejności pozycji menu
|
|
errors:
|
|
url_scheme: Podaj link zaczynający się od http://, https://, mailto:, tel:, / lub #.
|
|
target: Wybierz Tej samej karcie lub Nowej karcie.
|
|
type_unknown: Wybierz jeden z typów z listy.
|
|
menu_required: Wybierz menu albo pozycję nadrzędną.
|
|
parent_cycle: Pozycji nie można umieścić pod nią samą ani pod jej własnymi pozycjami.
|