You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, November 18th 2013, 1:35pm

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:

Source code

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?

Arsdezi

Intermediate

Posts: 174

Location: Ukraine

  • Send private message

2

Monday, November 18th 2013, 3:45pm

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

Monday, November 18th 2013, 3:53pm

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.

Arsdezi

Intermediate

Posts: 174

Location: Ukraine

  • Send private message

4

Monday, November 18th 2013, 5:39pm

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

Tuesday, November 19th 2013, 9:13am

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:

Source code

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!

Arsdezi

Intermediate

Posts: 174

Location: Ukraine

  • Send private message

6

Tuesday, November 19th 2013, 11:39am

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

Wednesday, November 20th 2013, 2:21pm

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

Wednesday, February 19th 2014, 6:33pm

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();

Source code

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

This post has been edited 1 times, last edit by "myp3ilka" (Feb 21st 2014, 11:46am)


Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

9

Thursday, February 20th 2014, 12:49pm

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

This post has been edited 1 times, last edit by "Umalo" (Feb 21st 2014, 8:02pm)


Arsdezi

Intermediate

Posts: 174

Location: Ukraine

  • Send private message

10

Friday, February 21st 2014, 1:32pm

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

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

11

Friday, February 21st 2014, 4:45pm

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

Arsdezi

Intermediate

Posts: 174

Location: Ukraine

  • Send private message

12

Friday, February 21st 2014, 7:13pm

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!

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

13

Friday, February 21st 2014, 9:49pm

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

Arsdezi

Intermediate

Posts: 174

Location: Ukraine

  • Send private message

14

Sunday, February 23rd 2014, 2:37am

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..

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

15

Monday, February 24th 2014, 6:42pm

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)