Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
It seems that the tour name is hardcoded into the component! It works only if the Item name and folder is exactly "tour". If I use any other name it gives a page not found error and in the source code of that page you can see that the iframe url is always trying to open the "tour" folder. This also means that only one panorama can be shown.
How can this be fixed? I looked into the /components/com_phocapanorama/views/item/view.html.php file and it seems that it is setting the tour name on line 38. My php knowledge is not good enough to figure out how to change it so that it picks up the real panorama name from the component...
This is a very nice component, provided this problem can be solved!
Sorry, almost forgot about this. The code you show above is there. I have tried javascript and iframe (not external). My Joomla version now is 3.2.3. I did not realise that there is a place in the options for the panorama file name. Now I tested it a bit more and the problem is not in that code - it is somwhere else...
The problem is that I can show only one panorama - the one which name is defined in the options. I currently have one category "Panorama tests" and within that I have two items "tour" and "krematoriekapellet". The files are correctly placed in their own subdirectories, and the directories and files are named exactly as defined in the item settings. Both items show up in the category list on the frontpage. If I write 'tour' in the Options ... Panorama File Name the tour item will show the panorama ok, but if I select the krematoriekapellet item I get a 404 - category not found error. If I change the Options ... Panorama File Name to krematorikapellet I can view that item, but then I get the same 404 error when I try to view the tour....
So it seems that only one panorama (the one named in the options) can be shown, not all of the items? Or am I doing something wrong in my settings?
Hi, no, this system was set by users who use the panorama to display the panoramas - they just export every panorama with different name but the export function call all the basic files with the same name, e.g. tour.html, tour.xml, etc. So every panorama has different name but all have the basic files called the same - e.g. "tour" - every panorama should have own folder, so there are no conflicts with the name.