greenSkin,сan you advise how can I put share link into my page.tpl.php?

Thanks!

Comments

volocuga’s picture

Priority: Normal » Critical
stephencarr’s picture

I am finding it can be done but not really dynamically:

print $node->content['share_1_123']['#value'];

Obviously this will only output the share code for nid 123. It seems to not be possible to input the nid variable into the string, something like this fails:

print $node->content["'share_1_".$node_id."'"]['#value'];

Edit:

My bad, it can be done:

$node_id = $node->nid;

print $node->content["share_1_$node_id"]['#value'];

Got my quote marks wrong before.

volocuga’s picture

Thanks stephencarr!
I tested the code you provided and it does not work for me :(
What is "1" between "share" and "$node"? Is it share widget ID?

Thanks again.