Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Dunno if this is overlay or Openlayers's issue.
Steps to reproduce:
- Enable core's overlay module
- Add a link to 'admin/structure' inside an popup
- When clicking on link, link target replaces page, instead of opening in Overlay as expected.
I'd be happy to bugtrack this more, but unsure where to start looking.
Comment | File | Size | Author |
---|---|---|---|
#9 | Výběr_156.png | 7.2 KB | milos.kroulik |
Comments
Comment #1
mgiffordA screenshot might be nice too. Also, not sure why you'd want this. Seems like a confusing thing to do to a map.
Comment #2
farald CreditAttribution: farald commentedI can understand why it may seem so.
But using openlayers' fullscreen capabilities, together with Overlay theme & Overlay paths, you can get some pretty cool overlay usage. What I want is actually everything except for frontpage to open up in an overlay, menu links and everything works, but no links appearing inside the bubble. They do normal redirects.
See this screenshot.
Comment #3
sonoutlaw CreditAttribution: sonoutlaw commentedI am trying to do something similar. I want to use an overlay when a user click a link in the bubble, so that they don't lose their place on the map when viewing that locations content.
I have tried both colorbox_node and Overlay Paths, but Openlayers grabs the "click" event.
Any idea how to get the admin overlay or colorbox to respond to a 'click' event inside the bubble?
Comment #4
milos.kroulik CreditAttribution: milos.kroulik commentedI confirm, that this bug still exists on current dev version. Were you able to make any progress on this?
Comment #5
milos.kroulik CreditAttribution: milos.kroulik commentedComment #6
azuledu CreditAttribution: azuledu commentedIt is possible to "force" the overlay adding a link to '#overlay=admin/structure' inside the popup.
And it works.
Comment #7
milos.kroulik CreditAttribution: milos.kroulik commentedThanks a lot, azuledu. I just tested your workaround and it works nicely.
Comment #8
vistree CreditAttribution: vistree commentedHi, how did you manage to fill in the #overlay= string??
I want to put this in a module. But everytime I click on the link, the string is converted to
%23overlay%3D
Is there a trick to do this?
Comment #9
milos.kroulik CreditAttribution: milos.kroulik commentedI'm using OpenLayers Feature Popups module, which allows me to create title template for popups (in Behaviors tab of Map configuration). I simply added the needed string there (see screenshot). Unfortunately, I don't know, how to add it to module.
Comment #10
azuledu CreditAttribution: azuledu commentedIt is not necessary to add the OpenLayers Feature Popups module to get this. Just add something like:
[title]
in admin->Structure->Views->Openlayers Data Overlay->Fields->Title->Rewrite Results
Comment #11
vistree CreditAttribution: vistree commentedHi, I have the problem, that I want to open links in overlay that I can't rewrite. I use the privatemsg module which views-field do not offer the rewrite option.
The same module sents out email with a link I also want to open in overlay:
http://www.mydomain.com/drupal/messages/view/3#privatemsg-mid-5
As this has nothing to do with openlayers anymore, I opened a new thread: https://drupal.org/node/2202285