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

stella’s picture

If 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?

jrefano’s picture

I 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:

<div id="imageDetails">

     <span id="caption" style="z-index: 10500;">Test Image 1<br/><br/>
 
    <a id="download_link_text" target="_blank" href="/sites/default/files/images/gallery/acc_home_rotation_a.jpg">Download Original</a></span>
      <span id="numberDisplay" style="display: block; z-index: 10500;">Image 1 of 3</span>

</div>

Thanks for your help.

stella’s picture

What 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

jrefano’s picture

I 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:

<a title="description field showing here" length="7291" type="image/jpeg" href="path/to/my/image/filename.jpg" class="views-processed">filename.jpg</a>

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)

jrefano’s picture

Is there any other information I can provide to help squash this bug? thanks

stella’s picture

I'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?

jrefano’s picture

The 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.

stella’s picture

Status: Active » Fixed

It'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.