Hi, Is there any way that we can include tokens along within the Caption field?

I have a field collection that consists of an image plus an associated tags [term:url] field, I want the tags to show up in the colorbox pop-up hopefully via the 'Caption field' or by some other means. Does anyone know a way that this can be done?

Thanks in advance

I've found out how to do this now using this http://drupal.org/node/799216 post.

The one problem I am having now is that the image no longer sizes to the viewport, is there some setting I have to change or is this because I'm using views? Can this resize be performed by jQuery?

Thanks in advance

Comments

Tony Finlay’s picture

Issue summary: View changes

Close

Tony Finlay’s picture

Issue summary: View changes

Close

Tony Finlay’s picture

Title: Tokens » Image not resizing to viewport when using views trigger
Category: feature » bug
Tony Finlay’s picture

Issue summary: View changes

Change of issue

griz’s picture

Same conundrum here with the media module. I have the ability to place other fields in the colorbox with the image, but really I want the image to resize to the size of the colorbox at its maximum. And yes, I think this is something you or I will have to do with jquery.

frjo’s picture

Category: bug » support
tregeagle’s picture

StatusFileSize
new287.57 KB

Yup same problem here with Colorbox-7.x-1.3.
Just to clarify here is a screenshot of the issue:

22.png

tregeagle’s picture

I think jquery is forgetting to add some padding to the width and height on the #colorbox id.
/edit/ OK not the padding it's the element width and height which needs another 30px added.

tregeagle’s picture

Issue tags: +Check doctype and js/css loading order

For others having this problem, check your doctype and the script/css loading order, " jQuery and colorbox.css need to be loaded prior to jquery.colorbox.js"

See this for more information: http://www.jacklmoore.com/colorbox/faq#faq-doctype

tregeagle’s picture

Issue summary: View changes

Update Issue

vacilando’s picture

Issue summary: View changes
StatusFileSize
new1.6 MB

Same problem in 7.x-2.8 -- colorboxed image triggered (triggered from a view) sticking beyond the right browser border instead of resizing.

Also tried 7.x-2.x-dev -- same problem.

1327476.png

vacilando’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
neslee canil pinto’s picture

Status: Active » Closed (cannot reproduce)