Search by

alveby / atrium-menus

xiregroup

Menus for Atrium: per site and language, a drag-and-drop tree of links to any record, items that unfold a module's sections

Package info

github.com/AlveBy/atrium-menus

Homepage

Issues

Type:atrium-module

pkg:composer/alveby/atrium-menus

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

dev-main / 0.1.x-dev 2026-11-19 05:55 UTC

This package is auto-updated.

Last update: 2026-11-19 23:09:06 UTC


README

Menus for Atrium built in the admin: per site and per language, items in a tree edited by dragging, links to addresses or to records of any module, and items that unfold a module's records by themselves.

Install

composer require alveby/atrium-menus
php artisan atrium:module:install alveby/atrium-menus

Add --demo for a header and a footer menu in the installer's language (any of the panel's 15), plus English, German and Russian ones, made of the installed modules.

Use

<x-atrium-menu code="header" />
$menu = atrium_menu('footer');

With the public theme (alveby/atrium-theme) the header and footer menus appear in the theme's header and footer by themselves. The current page and the items above it are marked (aria-current="page", is-active).

The guide: docs/menus.md (по-русски).

Tests

From the repository root:

vendor/bin/phpunit packages/menus/tests

The tests cover the admin form and the tree, the API, the component and the marking of the current page, unfolded modules, the demo and a site without the module, on SQLite, MySQL and PostgreSQL.

Contributing

This repository is a read-only copy of packages/menus in AlveBy/atrium. Issues and pull requests go there.

License

MIT