i suppose the way this works is that it just passes the url from node pages to the various services (digg/blogger/etc) so does this work on non-node pages by just calling a service links theme function? i would like to add this to my mls listing pages which aren't nodes but have a distinct url, i dont know yet if this would work with that or not.
Comments
Comment #1
TheCrow commentedi think it could work: for generate the item list just call service_links_render passing NULL as node object, and use one of theme functions availables (or write another one using the item returned by the render function) printing the result inside a block or wherever you need.
Comment #2
drupalninja99 commentedsounds good i will try that
Comment #3
drupalninja99 commentedworks good, I guess all it needs in the node param is something resembling a node with a title
just added
<?=theme('links', service_links_render($node, TRUE))//add digg, facebook, etc links?>Comment #4
TheCrow commentedi think drupal_get_title() can be useful; in service_links_render() change the code:
with:
otherwise change this:
with:
Comment #5
TheCrow commentedCommitted the second solution in the dev. version
Comment #7
webservant316 commentedHow does this work for 7.x?
https://www.drupal.org/node/2328081