Hi,
this is the discussion thread for the Accordion Menu Plugin .
This is a free plugin, use it wherever you like. If you are on github checkout the repository here .
Regards,
Alex
Hi,
this is the discussion thread for the Accordion Menu Plugin .
This is a free plugin, use it wherever you like. If you are on github checkout the repository here .
Regards,
Alex
Hi, I have an example tour with plugins and accordion-menu.xml, please
pardon ?
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
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();">
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
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
in the html you don't have to do anything,
just include the accordion-menu.xml file like this : <include url="accordion-menu.xml" />
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
http://www.balletmall.eu/vtour/tour.html
Pls let me know if I'm doing something wrong
rgds
Marco
put createMenu action in your startup function :
<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...
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'....
in your tour.xml file, line 9
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
you can always put createMenu() inside your startup funtion.
Thank you.
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.
set(plugin[Btn_Group2_event_1].html,[p]MyLabel[/p]);
set(plugin[Btn_Group2_event_1].onclick,loadscene_2());
I'm resurrecting the topic, but where do we put these codes? I failed to integrate the menu into my code.
Don’t have an account yet? Register yourself now and be a part of our community!