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

Wednesday, August 14th 2013, 11:06pm

Accordion Menu Plugin

Hi,

this is the discussion thread for the Accordion Menu Plugin .
You can test different layouts using the Accordion Menu Generator or read about the development in this post.
This is a free plugin, use it wherever you like. If you are on github checkout the repository here .

Regards,
Alex

2

Friday, October 11th 2013, 2:49am

accordion-menu

Hi, I have an example tour with plugins and accordion-menu.xml, please

3

Sunday, October 13th 2013, 6:47am

pardon ?

4

Monday, October 28th 2013, 6:17pm

Hello,
I'm afraid I'm not a programmer,my question can be a silly one,but where do I create the following command ?
Thanks
Marco
  • call createMenu() onstart

5

Monday, October 28th 2013, 6:22pm

Hi,You can do that everywhere in the code.

The most simple would be at the start of your krpano.xml file, like this : <krpano version="1.16.4" onstart="createMenu();">

6

Monday, October 28th 2013, 6:29pm

Thanks,
but do I have to do something also in the haed or the body of the html page,e.g vtour.html ?
rgds
marco

7

Monday, October 28th 2013, 7:12pm

Sorry,I understood that I have to place it in the tour xml file,but how I handle two onstart function in the same xml?
The tour one

<krpano version="1.16" title="Virtual Tour" onstart="startup();">


and the one for the plugin?

rgds

Marco

8

Monday, October 28th 2013, 7:59pm

in the html you don't have to do anything,

just include the accordion-menu.xml file like this : <include url="accordion-menu.xml" />

9

Monday, October 28th 2013, 11:01pm

Thanks for your reply.
I placed the accordion-menu.xml in the plugins folder and in tour.xml (main root) I wrote

<include url="plugins/accordion-menu.xml" />
I then uploaded the folder via FTP but menu is not loaded
This is just a first trial,you can see it here
www.balletmall.eu/vtour/tour.html
Pls let me know if I'm doing something wrong
rgds
Marco

10

Monday, October 28th 2013, 11:13pm

put createMenu action in your startup function :

Source code

1
2
3
<action name="startup">
		if(startscene === null, copy(startscene,scene[0].name));
		loadscene(get(startscene), null, MERGE); createMenu(); </action>





PS: There is something wrong with your if statement ! I get a "NetworkError: 404 Not Found - http://www.balletmall.eu/vtour/null"

In any case the menu should work seamlessly... *g*

11

Monday, October 28th 2013, 11:23pm

Hello,
if you click on the link it works,or at least it works for me.
In which file should I place the code you just wrote?
Thanks
Marco
ps I'm really new to this,I use to make VT but now I have to include a special menu'....

12

Monday, October 28th 2013, 11:28pm

in your tour.xml file, line 9

13

Tuesday, October 29th 2013, 10:10am

Hello that code was already in,so I will drop it probably too difficult to understand for my knowledge.

The only way it works,is if I in tour.xml I give onstart="createMenu(),but of course I had to cancel onstart="startup"().
If I leave them both site is not loaded.
Thanks anyway for your help.

Marco

14

Tuesday, October 29th 2013, 4:12pm

you can always put createMenu() inside your startup funtion.

15

Tuesday, October 29th 2013, 4:31pm

Thank you.

16

Monday, December 7th 2015, 11:19am

Issue with Krpano 1.18

Hey there, I am using this plugin and everyone goes fine but the issue is coming with this particular version i guess. Please see attached screenshot.
nitin1011 has attached the following image:
  • issue_accordian.png

Similar threads