I'm using Colorbox to link to external URLs in taxonomy node lists generated by feeds, and I'd like to do the same in the blocks on the home page and in the sidebars.
So, in other words, the links in taxonomy node lists such as this ...
... open in a Colorbox overlay, like so:
The syntax I'm using to create the Colorbox links here is something like this:
<a href="<?php print $node->field_source_url['und'][0]['value']; ?>?width=80%25&height=70%25&iframe=true" class="colorbox-load"><?php print $title; ?></a>
So, that's the background. Now, moving forward, I'd like to use Colorbox links in the views/blocks on the home page and in the sidebars: Features, Headlines, Category news, and so on. How specifically do I accomplish this?Best,Mattie
HELLO? IS ANYBODY OUT THERE?
Hi Mattie,
in view fields, add your field_source_url and check "Exclude from display"
Click Apply then choose "Title" field, check "Rewrite the output of this field then insert something like this:
<a href="[field_source_url]"?width=80%25&height=70%25&iframe=true" class="colorbox-load">[title]</a>
What is the path to get to these view fields, please? (Admin > Structure > Views ... then what?) Whoops, never mind, I found it.
Thanks, Mattie