2019-04-02, 16:35
In the main menu of my skin has dozens of menus, each menu uses a 'param' from 01 to xx like this:
Each menu has its submenu. There are 20 submenus for each menu, like this:
Where 01 refers to the parent menu, and .1 refers to the submenu item (.1 to .20).
It works perfectly, but this way I have to create submenus 01.1 through 01.20 for menu 1, and 02.1 through 02.20 for menu 2, and so on. That's a lot of code.
I would like to be able to make the submenu fish the parent menu item like this:
I know this syntax does not work, I posted only to illustrate what I desire.
Anyway by variables, or even by skin string, property string or another. I've tried it in many ways but none works.
This would save thousands of lines of code because I would only have 20 submenus to suit all menus.
Any idea?
Code:
<item>
<include content = "mainmenu_items">
<param name = "menuitem" value = "01" />
</include>
</item>
Each menu has its submenu. There are 20 submenus for each menu, like this:
Code:
<item>
<include content = "submenu_items">
<param name = "submenuitem" value = "01.1" />
</include>
</item>
Where 01 refers to the parent menu, and .1 refers to the submenu item (.1 to .20).
It works perfectly, but this way I have to create submenus 01.1 through 01.20 for menu 1, and 02.1 through 02.20 for menu 2, and so on. That's a lot of code.
I would like to be able to make the submenu fish the parent menu item like this:
Code:
<item>
<include content = "submenu_items">
<param name = "submenuitem" value ="$PARAM[menuitem].1" />
</include>
</item>
I know this syntax does not work, I posted only to illustrate what I desire.
Anyway by variables, or even by skin string, property string or another. I've tried it in many ways but none works.
This would save thousands of lines of code because I would only have 20 submenus to suit all menus.
Any idea?