I want my map links to have the 'rel="external"' attribute so they open in a new window (using jQuery), but from what I can see in the code, the link is hard-coded and the function it's in cannot be overriden... (correct me if I'm wrong)

So I've made a patch that adds an extra parameter to the function that'll append the parameter to the end of the link tag (hence you use the parameter to enter a string of attributes).

If you think this could be written better, like making the extra parameter an array rather than a string, feel free to edit the patch.
Thanks!

CommentFileSizeAuthor
#4 shadowlightbox.patch882 byteswOOge
location-location_map_link-attributes.patch903 bytesAnonymous (not verified)

Comments

Anonymous’s picture

Title: Allow attributes to be added to map links » Add attributes to map links

Anyone want to help test this?

yesct’s picture

tagging.

wOOge’s picture

Anyone know how to add rel="lightbox" instead, without patching?

wOOge’s picture

StatusFileSize
new882 bytes

Ok, seems like a patch is needed.

Apply this patch to the current version ( 6.x-3.1 ) to add options for "shadowbox" and "lightbox"

podarok’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

all feature requests should be rolled against latest 7.x-3.x-dev and after commit can be backported to 6.x branch

Status: Needs review » Needs work
Issue tags: -location theming map links

The last submitted patch, shadowlightbox.patch, failed testing.