Closed (fixed)
Project:
Colorbox
Version:
7.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
17 May 2011 at 17:12 UTC
Updated:
9 Feb 2018 at 02:10 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedOh and to clarify, I'd like colorbox to display my image, my image title and then the image's node title as a link.
Comment #4
Jerome F commentedIn views 3 you need to display fields for your view, check that colorbox module is enabled.
Create all the fields you need (image, image title, image's node title as a link.) Exclude them from display.
And create a trigger field (e.g. the image field rewrited to any text you want).
Then you can add a field called: Colorbox: Colorbox trigger in your view.
Select the trigger field in the select list.
In the Popup textarea use the replacements patterns of your fields.
side note: For an image gallery with thumbnails, there's a Formatter available in the image field in views.
Comment #5
Anonymous (not verified) commentedfor clarification, is this for a viewI'm creating, or is this part of a way to override colorbox defaults?
Comment #6
Jerome F commentedYou need to create a view to do what you want.
Comment #7
Anonymous (not verified) commentedCould you explain this more?:
"And create a trigger field (e.g. the image field rewrited to any text you want)."
Once I get this, I'll write it up for documentation.
Comment #8
Jerome F commentedI mean create a field which triggers the colorbox. It can be any field, like the nid, custom text, etc. But I would use the actual image field, because then you can hide the field if there's no result. If you don't need an image, but would prefer something else, like a text, you can use the Rewrite in views and type in some text there or use replacement patterns to combine some other fields.
Comment #9
joostvdl commentedThe "replacements patterns of your fields" are not shown when editing the Colorbox trigger settings.
Comment #11
Jerome F commentedYes they are, although you have to go under:
Configure field: Colorbox: Colorbox trigger > Rewrite results > Rewrite the output of this field (check temporarilly and uncheck once you're done) > replacement patterns
copy the replacement patterns for each field you need, paste them in the popup textarea. Make sure to uncheck Rewrite rules after you've finished.
Comment #12
Anonymous (not verified) commentedAnother question on this. In Views 3, how can you chose Image[alt] or Image[title] as your field?
For instance, the colorbox default shows the image with it's [alt] caption. I'd like the view to show the image with a link to it's node and it's [alt] caption.
Comment #13
Jerome F commentedread this http://drupal.org/node/1094312
Comment #14
drwierdo commentedHey,
Has anybody done this successfully? What i have managed to do is get a list of title of the nodes the images are from. When i click them, they link to the content...have been completely unsuccessful in making node-link to appear in the popup text area, below the image...please write the promised documentation Mtro and link it here!!
Until then can anybody please explain this more clearly??
Comment #15
drwierdo commentedI made it work. I have a jCarousel view of images and what i wanted was, while clicking on the image in the view, a colorbox should open, which would contain the image and the link to its node.
All this time, i had done every other thing right except that the image styler for the image field (which was excluded from the view) was still set to colorbox. So, whenever i clicked the image, before the colorbox trigger could access it, the image would be opened by the colorbox.
The solution was simple, making the core Image as the image styler for the image field and linking it to nothing. So, the next time i clicked on the image in the view, the colorbox trigger would come into play and display the image and its title link in the colorbox....and that's it!!!
Enjoy!!
Comment #16
drwierdo commentedfor more information http://drupal.org/node/799216
Comment #17
halltruck commentedDocumentation, and perhaps a tutorial online, would be greatly appreciated with this.... It's very unclear and colorbox is a kickass slideshow.... which makes these confusing steps very frustrating. I would love to have colorbox on my site, however, I can't get around this problem.
Comment #18
Anonymous (not verified) commentedI never got how this was meant to work. I'm still interested in knowing. Maybe a few screenshots of a working views configuration would be helpful?
Comment #19
Coldice4678 commentedI see this thread is old, but I figured out how to link a View link to a colorbox-node.
I am using D7.dev of Colorbox_Node
(You need to use both the Colorbox and Colorbox_Node Modules)
the main thing is NOT to use the Colorbox Trigger, instead just use a Title Field.
In the Title field there are these options, Check mark both of these:
-Link this field to the original piece of content
-->Display the content inside of a colorbox.
Now the whole Title Field is a Link to a Colorbox of the Full Node.
Styling:
if you want added fields, images, and etc. add them above the Title Field.
Then check mark "Exclude from display" in every field except for the Title Field.
Now go back to the Title Field and check mark "Rewrite the output of this field"
and use the "Replacement Patterns" to add the elements you want to render
You can be creative and wrap the "Replacement Patterns" in
and etc, and use CSS to make it pretty.
Note 1: No need to add any anchor links because the 1st step made the whole row a link to the ColorBox_node
Note 2: Do not waste your time with the Colorbox Trigger Field if you want a link to a Full ColorBox_Node. This should only be used if you want a ColorBox pop-up with view_fields.
Comment #20
lsolesen commentedThere is an answer, so marking this as fixed.
Comment #22
rachelf commentedThe info above got me on the right track and here's how I did it (with Views 7.x-3.3 and Colorbox 7.x-1.3 - I didn't need Colorbox_Node).
I have one image per node so I made a view of that content type.
I added the following fields to the view:
I then added a fifth field of type Colorbox Trigger and configured that so that
The result was a page displaying all the images as thumbnails with the title next to each, clicking on either the image or the title triggered the colorbox. The colorbox content was a full size version of the image which then linked to the full node for that image, and the caption was the title for the image, again linking to the full content.
Hope this helps someone else!
Comment #23
Québec commentedHi,
It would be appreciated if someone could reexplain again. I just cannot transform the title of the node into a link to that node (for images). I'm using a content type with title, image and taxonomies.
In structure > content-type > display : do I have to change «image» to «colorbox»? I tried the previous method but missed something.
I have a simple view of images in a grid.
Thanks.
Comment #24
dolly nyc commentedif you're working with a view then you shouldn't have to change the content type's display. the basic trick is to load the fields that you want in the colorbox but exclude from display. then add another field of type Colorbox Trigger: if you want to click the title to trigger the colorbox, then configure the colorbox trigger to fire off the Title field (similar to #22 but not exactly) instead of the image