Closed (fixed)
Project:
Lightbox2
Version:
6.x-1.9
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2009 at 21:13 UTC
Updated:
21 Jun 2009 at 10:20 UTC
I have a content type with a CCK imagefield. I have "description" enabled for the imagefield. Is there a way to make lightbox2 show the description in the lightbox popup? If not, is there a better way to include a field of text for description, photo credit, etc that shows in the lightbox?
Thanks!
Comments
Comment #1
stella commentedIf you have a description entered for the imagefield, then the description should appear as the caption under the image in the lightbox. Is this not happening?
Comment #2
jrefano commentedI have an image content type with a title, no body and a required imagefield w/ description enabled (no custom alt text, no custom title).
I am displaying the image content type nodes with a view, set to display fields (node title and imagefield). For the imagefield, I selected the imagecache/lightbox2 format I wanted to use.
Everything works fine except that the pop up only shows the title of the image, the download link and image X of X. There's a blank line where the description should be.
If I switch the field format to "Generic Files", the description is set to the title text, and I see it.
Here's the HTML being output from Lightbox2:
Thanks for your help.
Comment #3
stella commentedWhat version of imagefield module are you using?
When you say the image title appears, is that the node title? Where does that text come from?
You say you're doing this through a View. You can configure CCK field display settings by content type so it opens in a lightbox on the node page too. Can you try this to see if it works there?
Cheers,
Stella
Comment #4
jrefano commentedI am using imagefield 6.x-3.0-alpha4, views 6.x-2.3
When I was talking about the image title appearing with generic formatting, this is the output:
I just configured the CCK field display settings to open the lightbox on the node page, and when I view the single node the issue persists.
Anything else I should try?
(edit: updated views to latest version, issue persists)
Comment #5
jrefano commentedIs there any other information I can provide to help squash this bug? thanks
Comment #6
stella commentedI'm a bit confused to what you're doing. If you're viewing the image node in the lightbox, then it's the node title that will appear as the lightbox caption. If not, then the imagefield description should.
What are your imagefield display settings? Can you provide a link to your site?
Comment #7
jrefano commentedThe node title is appearing, I just wanted to make the description from the imagefield show under the title of the image.
I decided I am going to try to make a tpl.php file that calls the lightbox and sticks the fields into the attributes as needed. I think I've realized it's the correct way to do what I'm trying to do.
Comment #8
stella commentedIt's only possible to show one piece of information in the caption. So you can have the image title or the description, but not both. See #474454: Views lightbox2 custom field handler (update) for work on an on-going solution that should hopefully address this.