Hi,
I´m on Drupl 7.14, and use the latest version of Colorbox Node and Colorbox Plugin.
First of all - thanks for all the efforts you already did on this module.

I want to show the Content of a reference entity filed, that is formated with a Display Suite view mode.

In my view, I have selected the following options:
Formatter: Rendered entity
View mode: myViewmode
yes for: show links
Rewrite Results: Output this field as a link
Link path: [field_name-of-entity-reference-field]
Link class: colorbox-node

I tried now for many hours without success.-
Colud anybody give me a hint, whats wrong?

thanks!

Comments

iLLin’s picture

Not sure what you mean by displaying as a display suite view mode. This module opens the node (if its a node) with the view mode of "colorbox". It will open any other pages, such as a view page, with however the content is rendered by the view.

inst’s picture

Thanks for feedback. So I reduce my question on this:
In views I have file with a link on a node. How can I open the node in a colorbox.

I thouht it would work like this:
Formatter: description
Click yes to: Link label to the referenced entity
Click yes to: Output this field as a link
Link path: [field_node_path]
Link class: colorbox-node

But this doesn´t work, I jut get the normal links and not the links to the colorbox.

Andre-B’s picture

Component: Code » Documentation
Assigned: inst » Unassigned
Status: Active » Fixed

you will have to provide the width and height of the colorbox in your link / along your link as well, see the project page for documentation on that.

I am not sure if the default link handler in views are capable of that, but you could rewrite that field as well completely and put a custom anchor around it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.