I really want to use this module! But I have a rather, bang head against desk client needs this no matter what request.
I understand the caption information is being generated from text in the description field after upload but it apparently does not recognize html markup.

I just want to allow for one thing: The ability to add a <br /> to start a new line. This is necessary for a nice presentation of

[image title]
[description]
[date]

I know this really isn't a problem with Galleria module ... that its a support request for upload.module but I just wanted to know if there was some way to alter the input format of that description field through this module. I've tried to create a hook form alter to no avail.

Thanks in advance for any suggestions to fix this.

Edited by: VeryMisunderstood; Added code tags around html

Comments

Mark Theunissen’s picture

The problem is that the Galleria jQuery plugin uses the 'title' of the image to make the caption. E.g.

<img src="image.jpg" title="This is a picture of my dog"></img>

Now, you can't put line breaks in there. You can't have HTML inside an attribute.

You have a few options, either hunt around here http://devkick.com/lab/galleria/ for clues on how to change this, or make a custom approach to captions.

Mark Theunissen’s picture

Status: Active » Closed (fixed)
Jean-Philippe Fleury’s picture

I had this need too. Here's how I made:

- In the galleria folder, find the file inc/jquery.galleria.js and go to this line (in the version Galleria 1.0-rc2, it's the line 311):

_wrapper.siblings('.caption').text(_thumb.attr('title'));

and change it for:

_wrapper.siblings('.caption').html(unescape(_thumb.attr('title')));

Thanks to this discussion: http://devkick.com/talk/topic/138/is-it-possible-to-have-an-html-link-in...

fallsemo’s picture

That worked like a charm! I went in a different direction but now I think I'll rework it in!
Thanks a lot :)