Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Links in captions?

More
16 years 11 months ago - 16 years 11 months ago #14117 by COS
Links in captions? was created by COS
UPDATE: Figured out that basic HTML works in the labels.txt files.

Is there any way to put a clickable link inside an image caption?

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #14118 by Thierry Schweitzer
Replied by Thierry Schweitzer on topic Re: Links in captions?
It is possible to have a link for the gallery it self, but all picts would link to a single page Would be very nice to have a link per picture in the labels.txt file !!!

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #14119 by COS
Replied by COS on topic Re: Links in captions?
Hey Tdoc, I got links per image to work in the body of captions in the labels.txt file. On my site, the entries in labels.txt look like:

filename.jpg|Image title<br>Image caption here.<br>Courtesy of <a href="awebsiteurl.com">Web site name.

Which gives me line breaks and a caption link.

But maybe you want the each actual picture in a gallery to link to something else? That I don't know about.

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #14120 by Grant Oliver
Replied by Grant Oliver on topic Re: Links in captions?
Do you know how to make the link open in a new window?

Thanks,



Grant

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 10 months ago #14121 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Links in captions?
The use of the <br> tag to break the line in the labels.txt is a good solution!
If you have problems with some special characters just remove carefully the htmlentities function, because it isn't work with all the iso language format!

To open in new window try the "target=_blank" option in the <a> tag!

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #14122 by Hugh
Replied by Hugh on topic Re: Links in captions?
Hi,
I have tried following the approach outlined by COS above amd clearly got something wrong!

What I want to do is display a page of thumbnails (and sigPro is clearly very good at doing this) and then link via the caption text to another Joomla page which provides more information on the image.

The text in my labels.txt looks like this:
imagefile1.PNG|<a href="www.mysite.com/index.php?option=com_content&view=article&id=12">Demo 1 - New Office

The caption which appears under the image is:
<a href="www.mysite.com/index.php?option=com_content&view=article&id=12">Demo 1 - New Office

So it appears that the plugin is treating the html code as text

Given vinikey's response I took a look at the plugin file (jwsigpro.php), i looked for occurrences of htmlentities, in the J1.5 file there appear to be 3 entries (lines 324, 326  and 351). I have tried carefully removing them and either disrupted the layout or produced two copies of the caption.

Please could one of you explain where I am going wrong. I am running J!1.5.3

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #14123 by Grant Oliver
Replied by Grant Oliver on topic Re: Links in captions?
Hi Hugh,

I have it working OK on my site.

Your link should look like below.

imagefile1.PNG|<a href=http://www.mysite.com/index.php?option=com_content&view=article&id=12>Demo 1 - New Office

You need to remove the " from it.

Regards,



Grant

Please Log in or Create an account to join the conversation.

More
16 years 10 months ago #14124 by Hugh
Replied by Hugh on topic Re: Links in captions?
Hi Grant,

I have just tried removing the double quotes (") from the file caption. The caption is now appearing as:
<a href=http://www.mysite.com/index.php?option=com_content&view=article&id=12>Demo 1 - New Office  :(

Did you modify the jwsigpro.php file to get this to work or were there any particular setting for the plugin that you are using?

Thanks,
Hugh

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 10 months ago #14125 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Links in captions?
Hi my friend!

At the place where you see all the link, in the source what code is appeared?
If you try to slash out the quotes? As \" or \' ?

If you can post also a direct link to the gallery will be helpful!

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum