Active
Project:
Views Slideshow: Galleria
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Jul 2010 at 07:02 UTC
Updated:
21 Apr 2014 at 17:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Adam S commentedI just discovered that the text attribute creates the caption. Still it would be nice to have some functionality to manage caption text with the Galleria plugin. National Geographic implements jCarousel, Galleria and body text for a lot of it's content. I think its rather cool. http://www.nationalgeographic.com/nationalgeographic.com/geography-of-di...
BTW, it's a great module and I will be testing it.
Comment #2
aaron commentedi'm working out how specifically to do that right now. basically, we need to pass a js function to the plugin telling it where to find the caption when it's not in the default title attribute. my experiments aren't working yet, but it is in my @todo list. i'll have to see if i can generalize it for any basic view, or if it'll require a site-specific override in the slideshow options, but i'll post my solution on this ticket.
Comment #3
Adam S commentedI was mucking around with javascript and css both of which I know little about and created this monster of a template. At first it didn't work on the iPhone but now it does. Who knows?
Comment #4
plastikkposen commentedAdam S
Looks fantastic. Where does your files in the ZIP file actually go? (directory)
thanks :-)
Comment #5
Adam S commentedI made a post about how I made the Galleria on my site. http://drupal.org/node/856990#comment-3216058 (How cool is the photo???)
If you try it, make some notes because this would be a good contribution to Drupal documentation.
I attached the latest version of my custom theme because I've done a lot of work on it since.
Comment #6
plastikkposen commentedHow do you enable your custom plugin???
-Thanks
Comment #7
aaron commentedespen.skalle: to add a custom theme/skin, you'll need to add that skin to your sites/all/libraries folder, then paste the path in the custom theme section of the galleria options.
thanks for the great theme, adam!
Comment #8
Adam S commentedThe theme could use a little work making sure that it functions in Opera.
Comment #9
thinguy commentedNot sure it it's not working or I have the path wrong.
I use custom for the custom theme name and sites\all\libraries\galleria\src\themes\custom for the path?
also tried sites\all\libraries\galleria\src\themes and sites\all\libraries\galleria\src\themes\
I switch to one of the canned themes it works fine.
Thanks for any help you can toss my way.
Comment #10
aaron commented@thinguy: it needs to have the path including the filename.
Comment #11
Adam S commentedI used the script in the galleria demo website as a guide. It looks like this. If your using my custom theme, it could really use some debugging. It would be great if a designer CSS person could spend even just 30 min on it.
Comment #12
dealancer commentedFound the solution. It is very simple:
1) Add alt field in the image field configuration
2) Add alternative text to the image
That's all. Galleria will handle that.
It need to be documented in the README file and project page as well.
Comment #13
dealancer commentedCreate template in your theme folder for the image field that is shown in the views and paste following code there:
Comment #14
Anonymous (not verified) commentedI have struggled for two weeks to get this right. Im at the verge of giving up. Still, no other fields appear. Everything else is fine, except this.
What next?
Please help.
Thanks
Comment #15
Anonymous (not verified) commentedSwitched to thumbnailhover.
:)
Comment #16
mmeldrem commentedUsing sgabe's suggestion here, I've made a custom formatter to add the node link to the 'longdesc' attribute of the image. This causes the image to link to its node. We can modify this image formatter to add additional attributes to the image such as title and caption. By default, Galleria loads the 'alt' attribute as the caption.
If you don't have a summary, use ['safe_value'] instead of ['summary'] to use the node's full body field. Of course you can run any php functions on the $alt variable to get the string the length you want before adding to the $item['attributes'] array.
If you choose to link to the image's node, I recommend using this css to change the mouse cursor into the link cursor:
Note: I've noticed that if the image already has alt text, this will not override that text. Maybe someone has a workaround for that, but this worked in my situation, and so I wanted to share.
Edit: Sorry for resurrecting an ancient thread, but I couldn't find any clear instructions on how to achieve captions with this module, and this was the solution I found.
Comment #17
mmeldrem commentedI just noticed in my above post (#16), that this image formatter doesn't pass the image style(s) that is selected with it in the Views config, yet I need it in order to make the image link to its node. Does anyone know how to make the custom image formatter pass in the image style?
Comment #18
mgiffordAlso worth considering figure & figcaption along with a move to HTML5.