Official JA Megamenu Module Guide
JA Mega Menu is a dropdown menu with following features
- Display menu items as any other Joomla menu type
- Submenu can be multi columns with specified number of menu items for each columns
- 1 or many modules as sub items
Creating menu items using JA megamenu
JA Megamenu supports to load default Joomla menu items or load a module as a menu item. In particular, JA Megamenu allows to create sub-menu with multi-columns. Depending on each type you select, you declare following params when creating menu items:
A. Code / Syntax Usage
The options for a menu item is declared in the menu title. Title of a menu item of the form:
Title [name1=value1 name2=value2] Description
Value of the option contains no white (spaces, tabs ...)
THE MUST HAVE : All the codes mentioned here are to be placed within the brackets, [ ], or else they will rendered as normal text.
The params options include:
Code:
1. cols=n
declaration of the sub menu columns
Code:
2. modid=ID1,id2 ...
Load modules by ids
Code:
3. modname=name1,name2, ...
Load modules by names
Code:
4. modpos=pos1,pos2 ...
Load modules by positions
Code:
5. group=0 / 1
0 (default): Sub items / modules are shown as a sub menu
1: Sub items / modules are shown as group content
Code:
6. width=xxx
width of the sub menu
Code:
7. colw=xxx
width of the columns in the sub menu
- This works, when put to the parent Item e.g. >> [cols=2 colw=300]. This will render both the columns for 300px width.
- It needs the cols=x defined in the parent Item. Then only it will render 'x' number of columns to specified width.
- Wrong usage : [colw=300] without defining cols=x before it.
- This will not work if inserted in the sub menu's.
- Correct Usage : [cols=2 colw=300] > This will render 2 columns of 300px width each , [cols=3 colw=200] > this will render 3 columns of 200px width each.
Code:
8. colw[i]=xxx
width of the column i in the sub menu collection
- This again will work only when defined in the parent item only. Will not work in sub-menu items.
- It needs the cols=x defined in the parent Item. Then only it will render specified 'x' column to specified width.
- Correct usage : [cols=3 colw1=200 colw2=150 colw3=300]. This will render column 1 with 200px width, column 2 with 150px width and column 3 with 300px width.
Code:
9. class=class1,class2 ...
Add them to the class menu item and submenu.
Some Examples :
1. To load a Single Module as a Parent Menu Item. For this example, we take mod_login, which is published to left, Named Login and module id is 58.
Look at the Frontend example :

The code used for this render is
Code:
Login [cols=1 modname=login] or Register
Other way of adding the same module is by use of module id. So alternately the following code will also give the same output.
Code:
Login [cols=1 modid=58] or Register
A Separator type menu link is created to load the above code.
See the backend shot of the setting :

Important : To load 2 modules next to each other look at the 2nd example below. The above code will not work in such cases. If you use the code [cols=2 modid=58,19], the two modules (with id 58 and 19) will be rendered one after another.
Example 2 : To load 2 or more module next to each other under Parent Item.
Look at the Frontend example :
Look at the Backend settings :
Bookmarks