It seems the lightvideo [caption] parameter does not work with "Rewrite the output of this field" in VIEWS.MODULE.

To explain...

I have a View (using VIEWS.MODULE) that is going to show a screenshot image of a youtube video. When you click on the image it will launch the video in a lightbox (using LIGHTBOX2.MODULE).

Using "Rewrite the output of this field" for the image field in Views I have:

[field_video_screenshot_fid]

The [caption] parameter should display the description field for the video...but it doesn't. When I click on the video image in the Views list (it's in a block) everything works fine: the lightbox appears, the youtube video plays...but no caption underneath the video :(

Please help... Thank you in advance!

CommentFileSizeAuthor
#1 s1.png97.95 KBmttjn
#1 s2.png248.81 KBmttjn

Comments

mttjn’s picture

StatusFileSize
new248.81 KB
new97.95 KB

sorry. the above code didn't write out properly. Here's what it should say (hopefully this will work...):
-------
It seems the lightvideo [caption] parameter does not work with "Rewrite the output of this field" in VIEWS.MODULE.

To explain...

I have a View (using VIEWS.MODULE) that is going to show a screenshot image of a youtube video. When you click on the image it will launch the video in a lightbox (using LIGHTBOX2.MODULE).

Using "Rewrite the output of this field" for the image field in Views I have:

<a title="[field_video_description_value]" href="[field_video_link_value]" rel="lightvideo[][[field_video_description_value]]">[field_video_screenshot_fid]</a>

// obviously I DO NOT have php tags in the real thing (see attached image) but I don't know how to get Drupal.org to write out the html for the <a> tag apart from using php tags :)

The [caption] parameter should display the description field for the video...but it doesn't. When I click on the video image in the Views list (it's in a block) everything works fine: the lightbox appears, the youtube video plays...but no caption underneath the video :(

Please help... Thank you in advance!

jasonglisson’s picture

Any update on this? I'm having the same problem. I've gotten YouTube and Lightbox2 to work nicely, but I'm not able to get any kind of caption to show up from Views.

Matt-H’s picture

Have you looked at the rendered HTML output from Views? That might give a more detailed indication of what is and is not working. You can see if the field_video_description_value is showing up correctly in the rel="lightvideo[][______]".

I suspect it has something to do with the use of the brackets. If Views is making substitutions for [field_video_description_value], it may be confused by all the double brackets of the [[field_video_description_value]]. I don't think Views lets you \ escape brackets, but you might try it.