Skip to content

myMenus support for themes #1011

@liomj

Description

@liomj

Hi

Really nice work with xoops 2.5.11 so far

i would like to propose to add mymenus support in xoops core theme for easy menu creation

some theme examples with mymenus support
https://github.com/insraq/old-xoops-premium-themes/tree/master/InsApp
https://github.com/insraq/old-xoops-premium-themes/tree/master/InsLight
https://github.com/liomj/gentelella
https://github.com/liomj/sbadmin

Example
put all the menu files inside the menu folder \themes\xswatch4\menu
Activate the My menu Block
In the block settings, use the following:
a. Use skin from theme —> Yes
b. Display Method —> Assign to template
c. Unique ID —> xswatch4

then we can use <{$xoops_menu_xswatch4}> in theme something like
<{if $xoops_menu_xswatch4}>
<{$xoops_menu_xswatch4}>
<{else}>
xswatch4 default menu
<{/if}>

by the way i tested with an old version of mymenu 1.3 and xoops 2.5.11 beta 2

...the option use skin from theme is not working properly somehow in my installation using latest mymenus and latest core from github

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions