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.
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
Comment #1
dawehnerThey 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.
Comment #2
damiankloip CreditAttribution: damiankloip commentedComment #3
aipheshi
i need the same thing, where can i find these settings in v3 ?
thanks
Comment #4
MustangGB CreditAttribution: MustangGB commented