Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Mittwoch, 14. August 2013, 23:06

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

Freitag, 11. Oktober 2013, 02:49

accordion-menu

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

3

Sonntag, 13. Oktober 2013, 06:47

pardon ?

4

Montag, 28. Oktober 2013, 18:17

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

Montag, 28. Oktober 2013, 18:22

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

Montag, 28. Oktober 2013, 18:29

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

Montag, 28. Oktober 2013, 19:12

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

Montag, 28. Oktober 2013, 19:59

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

Montag, 28. Oktober 2013, 23:01

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

Montag, 28. Oktober 2013, 23:13

put createMenu action in your startup function :

Quellcode

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

Montag, 28. Oktober 2013, 23:23

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

Montag, 28. Oktober 2013, 23:28

in your tour.xml file, line 9

13

Dienstag, 29. Oktober 2013, 10:10

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

Dienstag, 29. Oktober 2013, 16:12

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

15

Dienstag, 29. Oktober 2013, 16:31

Thank you.

16

Montag, 7. Dezember 2015, 11:19

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« hat folgendes Bild angehängt:
  • issue_accordian.png

Ähnliche Themen