I am trying to use the example:
a href="images/image-1.jpg" rel="lightbox[][<a href=\"http://www.yourlink.com\">Clicky Visit Link</a>'>image #1
To use image caption into a Link...however Drupal keeps reformating the HTML code and breaks it. I've turned off all the filter in the Full HTML input format area in the admin.
Any ideas? Is there any other elegant way of doing this?
Comments
Comment #1
stella commentedWhat's the re-formatted HTML? If you're using full html input, it should do anything to your input text. Please place your code within <code> tags when pasting it in here.
Cheers,
Stella
Comment #2
gumdrop commentedUnless it's the editor doing it. But when I enter the text I switch off the rich text editor. I am using FCKeditor.
Comment #3
stella commentedCan you send me a link to your site? My contact form is enabled if you wish to do so privately. Can you also paste in the code as exactly as you enter it in the node body?
Cheers,
Stella
Comment #4
gumdrop commentedI've added the code almost identically as your example except for the image names and locations.
I kept it simple. However, Drupal adds the extra html bits like "visit" and lops off the rest after I post it. I look at the code and it's re-formated according to how I posted above.
My site is off line at the moment and under development.
Comment #5
stella commentedIf that's the case, then you must have an input filter enabled. Check
admin/settings/filters. If that's not it, then maybe it's one of the other contributed modules you have enabled on your site. I can't help any further without seeing the site itself, sorry.Cheers,
Stella
Comment #6
gumdrop commentedYeah it seems to be the FCKeditor that's doing the re-formating but now I can seem to get the caption to show up.
Thanks for your help.
Comment #7
stella commentedSee http://drupal.org/node/252153 for help on getting it to work with FCKeditor.
Cheers,
Stella
Comment #8
gumdrop commentedThank-you thank-you...that worked perfect.
Comment #9
sylv3st3r commentedIt still fixed, but I want to point out things that I found recently. If you follow the example on the documentation, it's not gonna work. I've post correction on documentation comment.
Thanks stella for the great module.
Comment #10
stella commentedFixed, thanks.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
badlydrawnben commentedHello,
It would have saved me hours of searching and experimenting with different code if I had have read this suggestion, so I'm offering it here in case it might help someone else in the future:
The example html in the current documentation is this:
It doesn't work for me (or for anyone I think. First of all the last ' should be a ]
Also, when i converted the " to its HTML code as well as the < and > then that fixed it.
Try something like this instead
<a href="images/image-1.jpg" rel="lightbox[][<a href="http://www.yourlink.com">Clicky Visit Link</a>]>image #1Hope that might help some hapless googler like me to fix their links inside lightbox captions.
Great module by the way.
Ben
Comment #13
jvdurme commentedbadlydrawnben, you're a life saver. Thanks a million!