Closed (fixed)
Project:
Colorbox
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2010 at 23:29 UTC
Updated:
19 Dec 2010 at 11:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
frjo commentedThe home page for the Colorbox plugin has some information how to use it. See e.g. http://colorpowered.com/colorbox/core/example4/index.html
Comment #2
j0rd commentedThat example does not show one how to use colorbox to display inline content with this drupal module.
I'm looking for a specific example on how to do it with the Drupal module (which does things differently)
Comment #3
obrienmd commented^ agreed with #2. It's not clear how to use the drupal module (in code or UI, preferably code) to open inline content in a colorbox.
Comment #4
hutch commentedThe file views/colorbox_handler_field_colorbox.inc contains code that uses the inline features of colorbox, in particular you will need to ensure that the right js is running with:
To build a link to that content you can use something like:
'fragment' should point to where the content you want to show is, eg the id of a hidden div.
Obviously you will need to give the various variables, $link_text, $width etc some sensible values.
This should get you started ;-)
Comment #5
frjo commentedPlease try out this patch and report back how it works for you.
It adds a setting to activate colorbox_inline.js with a short description how to use it. Here is one example use:
Comment #6
frjo commentedCommitted to 6-dev.
Comment #8
sadist commentedHas this been committed to the latest 6.x-1.0-beta9? Am I supposed to see an option for me to have Colorbox for Title links in Views?
Edit: Sorry, I think I'd just found it. Thanks so much for the feature!