Menu
Menu, located on left side of screen in your admin panel, configured in a file confing/adminix.php, in menu array
Method | Description |
|---|---|
title | Text title in the top-left corner on of your admin panel |
links | List of links in left-side menu. Link configuration described below |
Example:
Link configuration:
Method | Description |
|---|---|
uri | Defines the URL address of the Link. Structure - / {Prefix (from config)} / Example if page uri set to "users"- Exception - "/", it is mean Adminix home page - Best practice - Put URI into Page as a constant, as in this example |
title | Text title of the Link |
icon | (optional) Icon class name from Bootsrap icons Example: to generate in the Link an icon |
Link groups
Use MenuLinkGroup when several sidebar links belong together. Groups still contain normal Adminix menu links, so the target pages remain declared server-side:
Result: on the full desktop sidebar the group can be expanded inline. On the compact icon-only sidebar Adminix does not expand the group inside the narrow column. Hovering or focusing the group opens a flyout to the right with the group title and full link labels, while simple links show their label in a small flyout. On mobile drawer screens the sidebar remains full width and uses the normal inline group behavior. Each group has one keyboard-operable disclosure control: Enter or Space toggles it, aria-expanded stays synchronized with the flyout, and nested active links keep their ancestor groups open.
Rendered example:
Rendered example:
