documentation needed.
pshafer - January 12, 2009 - 05:25
| Project: | Share |
| Version: | 5.x-2.0-alpha10 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Can someone post some documentation on how to get this module to work. I have endabled a share popup and a sharethis popup. Assigned it to show up on a custom cck node type and the panel node type. I'm assuming that enabling it on the panel node type will add the share links to the bottom of panel pages, but I could be wrong.
Do I need the service links module?
I don't understand what the 'Where' controls in the settings page 'Node', 'Links', 'Block' is very vague. Can someone explain what these mean, and if I have a custom node.tpl.php what node variables need to be in the template?

#1
I do need to write some good documentation.
The 'Where' controls where the popup will exist. If set to 'Node' then the popup will be added to the content of the node which should then be accessible in node.tpl.php as $node->content['share']['#value'].
The 'Links' will make the popup display in the node links. When 'Where' is set to 'Block' then a block will be created and is able to be added to a region on the blocks page.
You will only need the Service Links module if you want the functionality provided by Service Links, and this only applies if you are not using a ShareThis popup. ShareThis does not utilize the Service Links module.
#2
I tried both links and content, and I didn't see them when I dumped the $node (print_r($node)).
I'll give it another shot. Maybe I'll just add it to every node to see if that makes a difference.
I'll report back with my results.
#3
Ok, I had the settings on the "share" only on a few node types and it was not showing up in the links or the content. However, when unchecked the node type restrictions I was able to see the links. This isn't a show stopper, since all of my nodes are themed via contemplate or through a tpl.php script.
However, they appeared in the following format $node->links['share__{nid}'], I just thought that was odd, again, not a show stopper.
Thanks,
Phil
#4
If your popup 'where' is set to 'links' then it should show up in $node->links. If it is set to 'node' then it should show up in $node->content.
#5
I've enabled the module, and set the "Where" to Node, but I don't see any share element in the $Node object. Also, I cannot seem to delete the Share links I have already created. (I am taken to the delete page, and after hitting the Confirm delete form button, takes me back to the List where the share still exists.
EDIT: Nevermind, seems to be related to this issue: http://drupal.org/node/348766
#6