Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Steps:
- Add fields to your view that you want to appear _in_ the view.
- Add fields to your view that you want to appear in the lightbox - for each of these, ensure you've checked the 'exclude from display' option.
- Add the Lightbox trigger field to your view.
- When adding this field, select from the fields already added to the view that you want to appear in the lightbox.
Comments
What do I need to do to have
What do I need to do to have this lightbox trigger field in my selection of view fields? This field does not appear in my view fields?!
I did all the above: adding the fields I want to appear in the view, adding the fields, I want to appear in the lightbox (plus excluding their dispaly), but I can not add a lightbox trigger field - there is just nothing like that. I have all kinds of other options, like iframe thumbnail -> node page, but the lightbox trigger field should be an easier and better option for creating a lightbox field with an image plus some additional information...
Did I forget to do something? Please help, as I urgently need to get this to work...
Thank you!!!
Dev version
Karinha,
Download and install the development version of lightbox2. I too was wondering about this today. Hope it helps!
Cybl00
Trigger how
I have a view to display some user-information, included in this view is the user-picture.
I would like to show the original in lightbox clicking on this picture.
What parameter I have to set so that the user-images will be displayed in lightbox?
Also, make sure that a
Also, make sure that a version of lightbox is not hiding in a module like Gallery Assist and overriding your dev version of lightbox2. Modules will run if they are tucked within another module folder, which can hide them from your view.
The LB views trigger does not
The LB views trigger does not override the default automatic image handling (admin/settings/lightbox2/automatic). If the views trigger image is the same as the default automatic image, it will display the default and ignore anything you've set up in the view lightbox trigger. http://drupal.org/node/779134
CCK Field
My picture is a filefield source, how do I set this trigger do work for this kind of images?
- I have defined a Class in the ligtbox settings
- the image is in the view as hidden
- I added the lightbox trigger using the class I defined in the settings
but it does not work
Delete me
sorry
How do i integrate it with gmap
I have a view for gmap and add the field
Content: Google Map Map only
Lightbox: (the trigger field is field_gmap and what else setting do i need to do)
because it doesnt display on the view.. what should I put in the popup: area?
thanks
Some explanations
Trigger field is the one that will show you lightbox if you click on it. So here choose that field from select box.(for example: thumbnail)
Popup is the part where you could put your image that you want to display in lightbox (for example big image)
Caption is the part where is good to put all text that you want to show in lightbox (for example: title of image, body of the node, description , some cck text fields...)
If you choose popup width and height to be smaller then the image you want to show in that popup part, than scrollbars will be loaded too.
Auto resize
Is there no possible way to auto-resize the image to fit the lightbox window when using lightbox trigger? this kind of defeats the whole purpose of lightbox.
Try using image styles.
Try using image styles. Create an image style which scales the image to the size you require and than in views choose this style.
Broken/missing handler
I'm trying to add the Lightbox trigger field but I have the following error : "Broken/missing handler"
An idea ???
Patch here
http://drupal.org/node/1271456
How to style the content inside the lightbox?
I would like to use CSS to style the markup inside the lightbox pop up. I am creating a view of all the brands that a store sells. When the user clicks on a brand's logo, the lightbox pops up with info about the company and the companies logo enlarged. I need to style the HTML markup inside the lightbox frame. How can I best accomplish this?
Display video
I'm trying to display a video via views Lightbox trigger but so far haven't had any luck.
I imagine I have to set the "rel" attribute to lightvideo somewhere in the view but not sure how I can o that.
Any ideas appreciated.
Humm, found the option within
Humm, found the option within Lightbox trigger settings but it's not working, a quick check with chrome inspect element shows rel is not being rewriten to lightvideo:
Might be a bug on the module versio I'm using as I can't see a "Rewrite the output of this field" checkbox.
Ok don't know what's wrong
Ok don't know what's wrong with the module, but got around it by not using the lightbox trigger.
Instead just using the rewrite from one of the previous fileds:
where
[field_file] = path to the video file
[field_thumbnail] = thumbnail image of the video
rewrite paths
I'm not quite clear on how you passed the field_file & field_thumbnail paths in that rewrite. <--Ignore this. I misread your comment.
I have however, run into another issue. The rewrite outputs the thumbnail just fine, but the link opens a lightbox and then 403s. Did you run into this problem?
I'm not seeing any list of
I'm not seeing any list of Replacement patterns when I add a Lightbox2 trigger field. Usually, I would see something like that when I choose to 'Rewrite output of field as link' but there's no option like that. I'm able to choose fields to act as trigger but I'm just not seeing a list of Replacement Patterns available to pick from.
Anyone know why?
I had to apply this patch
I had to apply this patch: https://drupal.org/comment/7836831#comment-7836831 manually in order for the replacement patterns to show and Lightbox2 to finally work.
The only issue I have right now is that I'm getting an error message on the views page:
Notice: Undefined offset: 1 in lightbox2_handler_field_lightbox2->render() (line 191 of /var/www/sites/all/modules/contrib/lightbox2/lightbox2_handler_field_lightbox2.inc).
And line 191 show this piece of new code that was added as part of the patch:
$imgsrc = $matches[1];