I created a view that shows content of some nodes, I want to add the "share" block to the node, so I used the following code in a php field:

<?php
$block
= module_invoke('widgets', 'block_view', 's_addthis-share');
print
render $block['content'];
?>

But it shows data from the current url and not from the node.

Comments

jiddisch’s picture

Issue summary:View changes

syntax

jiddisch’s picture

Issue summary:View changes

to*

elBradford’s picture

If I were you I would use a page (panels) to do this.

elBradford’s picture

Issue summary:View changes

spelling