Template overrides
The HTML of the menu comes from layout files in the module. You can copy them into your template and change the copy. Joomla then uses your copy, and updates of the module do not overwrite it.
Create an override
- Go to System > Site Templates and open the details and files of your template, for example Cassiopeia Details and Files.
- Open the Create Overrides tab.
- Under Modules, click mod_easy_accordion_menu.
Joomla copies the layout files to templates/<your template>/html/mod_easy_accordion_menu/:
| File | What it makes |
|---|---|
default.php |
The list, the script that starts the accordion and the custom theme styles. |
default_component.php |
Links of component menu items. |
default_url.php |
Links of URL and alias items. |
default_heading.php |
Menu Heading items. |
default_separator.php |
Separator items. |
Edit the copies with the template editor.
Alternative layouts
To keep the original layout for some modules, rename your copy of default.php, for example to sidebar.php. Then pick it in Layout on the module's Advanced tab. The item files (default_component.php and the others) stay shared.
Keep the script working
The accordion script looks for the list by its id, easyamm-accordion-<module id>, and for the parent links inside it. If you change the list, keep that id and keep each sub-menu as a <ul> directly inside the <li> of its parent link.
After an update of the module, compare your override with the new layout files. Fixes in the module do not reach your copy.