This topic is locked

menu for mobile and menu for desktop

8/5/2020 10:04:05 PM
PHPRunner General questions
L
luchoadmin author

Hi how are you?

this time in a system I want to implement a view for mobiles and one for desktop.

I wanted to know if they know how to use MenuItem event to show a menu for desktop and another for mobile

Spider Webster 8/6/2020



Hi how are you?

this time in a system I want to implement a view for mobiles and one for desktop.

I wanted to know if they know how to use MenuItem event to show a menu for desktop and another for mobile


If you mean the common pages menu you can select a menu item and then on the right click display to select mobile only or desktop only.

I've had trouble with this though with all items selected for mobile I selected one for desktop but the desktop then shows all the menu items??.
Hope that was what you meant?

L
luchoadmin author 8/7/2020

oka thank you very much! it didn't work for me!

To explain,

I want the menu to be seen only by desktop and menu1 only by mobiles

need2sleepDevClub member 8/7/2020

You can hide specific menu items through the event pages. For example, I hide certain menu items depending on who is logged in. You should be able to detect if the device is mobile or not and execute the same code.
https://xlinesoft.com/phprunner/docs/menu_item_modify.htm