I'd like to display simple inline content using colorbox (an embedded flash object, or something similar). Is there an easy way to do this using the colorbox module? I am extremely familiar with templates and views, I'm just not sure how to write the markup - nothing obvious in the docs or issue queue.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | colorbox_inline_921206_5.patch | 3.42 KB | frjo |
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!