Hello,

i want to add popups to my links and i tried the format from the documentation!
[popup title="testlink" link="www.google.com" text=Search Google]
I can see she link, an also the text in the popup, but the link doesnt work. Nothing happens on click!

In my nodes is use Google in the body, is there a other or correct way to add a popup for the title or is the code witzh [popup] right? Or is there a class which i can add to the link, like other modules handle it (qtips, beautytips, jtooltips etc.)

Comments

FuXXz’s picture

with version 3.1 it works, except the correct link format

Scheepers de Bruin’s picture

I am unsure as to exactly what you are trying to accomplish...
Using this tag:
[popup title="testlink" link="www.google.com" text=Search Google]

Will simply create an anchor with title "testlink" and maybe stick the word "Search" in the popup. (You need to use quotes for attributes that contain spaces.)

This is per design. If you specify click activation, the HREF attribute will be removed from this anchor, also per design, as clicking it should show the popup. The link attribute is only there for no script fallback.

What I think you're trying to do is to create an actual "Search for this in Google" link in the popup body?

If so, you'll have to programmatically create that link and then insert that into the popup body.

jacobolsen’s picture

Just had the same issue here... the problem arises whenever you wish to add a popup as a tooltip to an existing link. Here's an ugly hack I used as a workaround: Wrap it in a div:

<div onclick="location.href='http://google.com/'">
[popup title="Popup title" link="http://google.com/" text="Popup text"]
</div>
Scheepers de Bruin’s picture

Status: Active » Fixed

Fixed in 6 and 7 versions

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.