Dear all,
The readme file say:
The Galleria player support title and description for each gallery item. By default, item title is the atom title, but it can be overriden locally in the gallery.
Unfortunately, I cannot find the way to display the author name next the image title.
I really like Scald Gallery, indeed it makes me feel a bit stupid sometime! Could any one help me to feel more comfortable with myself?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | author-and-title-2037681-7.patch | 2.74 KB | svax |
| #1 | scald_gallery-image-title-AND-author-Capture.jpg | 51.9 KB | gifad |
Comments
Comment #1
gifad commentedIt's kind of a translation issue :
“it can be overriden locally” means that you must type manually the desired title for all the images of the gallery...
You can replace “type” by “copy/paste” using following steps :
Now, when editing gallery, the above defined “caption” should be ready for copying (see attached screen shot), so it's just 2 seconds per image...
Having a small “copy” button would be great, and perhaps easyer to implement than “use gallery-items tokens” in Galleria player settings.
((To be posted soon by jcisio
please open new issue and post a patch.
;))
Comment #2
jcisio commentedExactly! The proper fix will be token support in the Galleria player so that
1/ you don't have to modify the overridden title when you edit the atom title
2/ not only title but also description can use token: you can use a field on the atom as the gallery item description
Comment #3
gifad commentedI finally made a patch, but for my sandbox project “Scald Gallery Extras”;
Alternatively, the following snippet can be included in any enabled module, provided it executes after scald_gallery's sibling alter.
This could be a patch to scald_galaxy, if some one turns the issue status to “feature request” :)
Comment #4
gifad commentedArgh, jcisio posted #2 while I was typing
well, so #3 is a “temporary fix”...
Comment #5
dan_metille commentedThanks a lot to both of you. #3 with gifad Scald Gallery Extras did the work.
Would token support (#2) allow to link the author name to its taxonomy page, or is there maybe an other way to achieve this?
Comment #6
gifad commentedYou're welcome :)
Looking at my code, I realize it's not multi-language ready (and your site is);
You should probably substitute 'und' by something like $langcode = field_language('scald_atom', $atom, 'scald_authors');
Comment #7
svax commentedI would also like to see a better way to display the author when browsing the gallery. I'm currently using this patch, but I guess support for tokens would be a better solution.
Comment #8
nagy.balint commentedThere was some work on the authors in this issue: https://www.drupal.org/node/2428547 which is already in the latest release.
Maybe that version could be extended if further features are needed.