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.
To have a whole view item consisting of multiple filds rendered as one colorbox trigger, I would create a view like the one below:
- [title] - excluded from display
- [field_image] - excluded from display
- [body] - excluded from display
- [global_custom_text_field] - excluded from view and bulid with tokens of all the above fields ([field_mebel_image][title][body])
- [colorbox_trigger_field] - trigger set to be the [global_custom_text_field]
I would expect colorbox to wrap the whole [global_custom_text_field] into one link which launches the colorbox. Instead, each field within the [global_custom_text_field] is rendered as a separate link.
Comments
Comment #1
Maciej Lukianski CreditAttribution: Maciej Lukianski commentedJust a category change
Comment #2
frjo CreditAttribution: frjo commentedI tested this and could not reproduce your problem.
I added four fields to my view:
* Content title (excluded)
* Content image (excluded)
* Global Custom text "[title]
[field_image]" (excluded)
* Colorbox trigger, trigger field set to "Custom text"
The Colorbox link was wrapped around the whole content of "Custom text".