Hello

I am trying to print a views block in node.tpl.php by using the following code:

 $block = views_block_view('headerimages-block');
 print render($block);

The problem is that the contextual links are not printed, I'm doing something wrong or is it a bug?

grts

Frederic

Comments

dawehner’s picture

They aren't added currently because contextual links are added to the outer block element, which is not available if you embed them.

You could probably solve that by using another display type like the embed one, which was added to views 7.x-3.x-dev, if you checked some option in the configuration.

damiankloip’s picture

Category: bug » support
aiphes’s picture

hi

i need the same thing, where can i find these settings in v3 ?

thanks

MustangGB’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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