Sie sind nicht angemeldet.

1

Montag, 18. November 2013, 13:35

Side Menu back/return button

Hi everyone,
I've made some sub menus with the Side Menu by Umalo with the following type of structure:

Quellcode

1
2
3
4
5
6
<group name="level_0" >
<group name="object_1" value="Group_Name_1" link="switch_menu(1);" /></group>
<group name="level_1">
<group name="object_1" value="Group_Name_2" link="switch_menu(2);" /></group>
<group name="level_2">	
<group name="object_1" value="Group_Name_3" /></group>


By default, the "back button" (I believe the plugin name for it is "submenu_back" in the sidemenu.xml) in the menu always brings me back to "menu(0)" or "level_0". However, I want it to only go back one level at a time. So if I were in "menu(2)" or "level_2", I would want the "back button" to bring me to "level_1" and not "level_0". How can I do this?

2

Montag, 18. November 2013, 15:45

Sorry, but if you know a plugin by Umalo support only one sublevel. You can use only level 0 (groups) and sublevel level 1 (elements).
So in any case you will be able to go back just once up to level 0!
…if I understand your question
*cool*

3

Montag, 18. November 2013, 15:53

But isn't there maybe a way to set up some "if cases" or something? I've managed to get some of it working that way, but I don't fully understand how these if actions work or how I should name the conditions in order for the menu to behave as I want it to.

4

Montag, 18. November 2013, 17:39

You can always to return only 1 step up to main levels of groups and button "back" have only in subgroup! Do you agree??
is why there is only one level where there is the button.
For this reason, I do not see any reason solve your task because is not support in "plugin" or you need to remake the plugin was to support nested subgroups ;)
Or do you already remade this plugin and were able to Add more subgroups?
PS: Sorry for my English *whistling*

5

Dienstag, 19. November 2013, 09:13

Yes, I suppose you are right. But there must be some kind of workaround, right? This is what tells the "back" button what to do when clicked:

Quellcode

1
onloaded="set(plugin[submenu_back].onclick, switch_menu(0)"


I was thinking maybe there is a way to say in addition to that: if level_2 or "menu(2)" is loaded, then it should go to level_1. Isn't this the kind of thing where "if actions" can be used? I just don't know how to write the code so that it works... Or maybe there is another way. The thing is, I've got a customer who wants the button to behave this way and I've already worked so much on the interface that I don't want to have to find a whole new replacement for the side menu!

6

Dienstag, 19. November 2013, 11:39

I need think about this...
or do so in the current example by Umalo, the first level was not hiding, but only disclosed the group?
you could do a sketch with the result that you want to get? ;-)
PS: I'm just also trying to adapt, and this menu is so interested in this!
BTW, maybe you needed use a accordion menu, If you have not a lot items in your menu of panoramas, like this:
http://krpano.com/plugins/userplugins/accordionmenu/#top

7

Mittwoch, 20. November 2013, 14:21

I have already modified the side menu quite a bit and I have everything working just as I want it to! The only thing still missing is how this button behaves... There must be some one who has a solution? Taking something new instead, like an accordion menu, would mean I would have to redo the entire interface and all that just because one button was not behaving the way it should...?

8

Mittwoch, 19. Februar 2014, 18:33

it's not work in krpano 1.16.9
I was thinking I did something wrong. But checked on an earlier version. Everything is OK.
So there is some problem in plugin with krpano 1.16.9



I solved the question myself. I put the initiate_menu(); before the startup();

Quellcode

1
onstart="initiate_menu();startup();"

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »myp3ilka« (21. Februar 2014, 11:46)


9

Donnerstag, 20. Februar 2014, 12:49

Guys I missed this thread. Next time send me pm or mail if you need some tweeks.
Here you can see 3 level side menu: Link
Link to package: Link
Regards
Umalo

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Umalo« (21. Februar 2014, 20:02)


10

Freitag, 21. Februar 2014, 13:32

Hi, Umalo!
Broken link! *cry*

Guys I missed this thread. Next time send me pm or mail if you need some tweeks.
Here you can see 3 level side menu: Link
Link to package: Link
Regards
Umalo

11

Freitag, 21. Februar 2014, 16:45

Checked as usually. Checked now. All fine. Are you sure you have no some popup blocker, proxy issues...what ever....

12

Freitag, 21. Februar 2014, 19:13

Checked as usually. Checked now. All fine. Are you sure you have no some popup blocker, proxy issues...what ever....

Hmm... very interest)
I on't have permission to access! *confused*

"Forbidden

You don't have permission to access /radna-mapa/anton/__krpano__/_shared_/side_menu_3level/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

Ok, I'll to try later!

13

Freitag, 21. Februar 2014, 21:49

checked from other computer and links works fine. Does anybody else has experienced troubles reaching my upper links to 3level side menu?

14

Sonntag, 23. Februar 2014, 02:37

checked from other computer and links works fine. Does anybody else has experienced troubles reaching my upper links to 3level side menu?

Fantastic! Work only through anonymizer. Direct doesn't work with many ways and providers from Ukraine..

15

Montag, 24. Februar 2014, 18:42

It must be realted to plitical situation there, so all I can do it send it to you via mail or other ways if this can help. Next time contact me directly to coordinate actions.
(hope you are fine...watching TV and thinking about you)