×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Article url to open hotspot in modal window?

Article url to open hotspot in modal window? 12 years 1 month ago #17990

  • Krx
  • Krx's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello

I wonder, is it possible to create link in Joomla articles to open desired hotspot in modal window?
When url is clicked, I just want to display small 300x300 modal popup with hotspots map and only one hotspot centered, without any info or sidebars.

I'm creating map with all important city destinations. I have various articles about those destinations so I would like to be able to open destination locations from articles as well.

If yes, can you pls explain how, or point me into existing thread?

EDIT
I tried this syntax: index.php?option=com_hotspots&view=hotspot&id=1
(I got it from single hotspot menu item creation)
But it opens page with this message:
"The category that you have selected in the menu settings doesn't exist - please check the id of the category again"


I'm using J1.5.26 and Hotspots pro 2.0.5.
We will upgrade into latest Joomla at some point. Maybe even faster if this is doable in latest hotspots for J2.5

Regards

Article url to open hotspot in modal window? 12 years 1 month ago #17992

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Please try the latest hotspots version 3.0 (it only works on 2.5). It doesn't have a modal window, but we have a content plugin that will display a map with the location. The user can click on the location (I believe also get directions - not 100% sure as I coded this plugin 6 months ago) and he can click on readmore and he will land in single view for that hotspot. I know that it is not a modal window, but maybe it is something that will do the job???
Daniel

Article url to open hotspot in modal window? 12 years 1 month ago #17993

  • Krx
  • Krx's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Daniel

If I understood you correctly, you are referring to option to display actual map in article.
I actually just need an option to create link which shows map only when clicked.

We have many articles with many listed objects in each article: Restaurants, Hotels, Stores, etc.
So to display map near each object would be too much.
Instead, I would like to be able to add small icon near each object title, which when clicked pops up modal window with location of that object in hotspot map.

There is actualy update to previous issue.

I tried to turn off all SEO settings to off. So when I do it so, if I add this url to icon:
index.php?option=com_hotspots&view=hotspot&category=1&id=1
maps shows in correctly new window. I have few modal options available to choose from so creating modal popups isn't a problem if actual url works.

But if I set all Joomla SEO to yes:

Search Engine Friendly URLs - Yes
Use Apache mod_rewrite - Yes
Add suffix to URLs - Yes

Joomla 1.5.26 default SEO engine turns previous URL it into:
www.ourwebsite.com/component/hotspots/hotspot/1.html?category=1
and this url generates this error message:
"The category that you have selected in the menu settings doesn't exist - please check the id of the category again"

I don't have any SEO components installed, and everything else works OK, so I guess that it must be something in your component which doesn't like how Joomla generates SEO enabled links.

Article url to open hotspot in modal window? 12 years 1 month ago #17995

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, find out the id of the hotspots map (itemid - look in the menu manager for this) And when you create your link add &Itemid=(the number of the hotspots menu) - then it should work.

Daniel

Article url to open hotspot in modal window? 12 years 1 month ago #18158

  • Krx
  • Krx's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi

For that J1.5 website, we will upgrade it into J2.5, and linking hotspots works OK there

Thanks

Regards
  • Page:
  • 1
Time to create page: 0.112 seconds