Blocks

The Menu is created by using Blocks.

Just click on the "Blocks" link...

Once you click, XOOPS opens the Blocks view. MyMenus module has as default only one block, but you can clone it as many times as you like.

As first, you should "activate" the block.

You can also drag the block to specific location, where you would like to show it to your visitors.

Finally, you can edit, or delete the block.

When you click on Edit, you can customize the menu to your needs:

Adding Menu Block Directly in Theme

You can add a MyMenus block directly in a theme, by assigning it to a Smarty template in your block:

Once you save the block, then you can add at the template of your choice the Smarty variable, e.g. here I've added it in the menu file /tpl/nav-menu.tpl located in the xbootstrap theme:

<li class="nav-item"><{$xoops_menu_1531793538}></li>

Last updated