Hi Fredrik

Many thanks again for your great module! :-)

I try to embed a colorbox-view (with an image field) in my template...
If I show the view inside of a block or with the Viewfield module as a field inside of a content type, all works as expected. But when I try to embed the same view with the views_embed_view function inside of my node.tpl.php, the colorbox does not appear. I can see the thumbnail, but when I click on it, nothing happens.

My Code:

<?php
  $output = views_embed_view('my_view_name', 'my_block');
?>

Do I have to initiate colorbox manually? (how?) Or do I have to change some of the settings inside of the view to get the colorbox to work?

Many thanks for any help!
Best wishes
Michèle

Comments

Michèle’s picture

Priority: Normal » Minor
Status: Active » Closed (works as designed)

Hi

I have realized that I had some buggy code on this page which disabled the colorbox. After removing this code, all works perfect with views_embed_view! :-)

Regards, Michèle