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
Comment #1
Mark Theunissen CreditAttribution: Mark Theunissen commentedThe 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.
Comment #2
Mark Theunissen CreditAttribution: Mark Theunissen commentedComment #3
Jean-Philippe Fleury CreditAttribution: Jean-Philippe Fleury commentedI 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):and change it for:
Thanks to this discussion: http://devkick.com/talk/topic/138/is-it-possible-to-have-an-html-link-in...
Comment #4
fallsemo CreditAttribution: fallsemo commentedThat worked like a charm! I went in a different direction but now I think I'll rework it in!
Thanks a lot :)