Closed (outdated)
Project:
ShareThis
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2009 at 15:50 UTC
Updated:
1 Oct 2019 at 08:58 UTC
Jump to comment: Most recent
Comments
Comment #1
robloachComment #2
greenskin commentedUnless I'm mistaken, the html head including javascript is already built by the time the theme tpl's are called. So if you are calling theme('sharethis'...) inside of a .tpl file, the javascript will not get added properly. The best thing to do is to add the theme('sharethis'...) output to a variable via template.php then print out that variable in your .tpl.
Comment #3
robloachAhh, I see what you're saying. Why do you want to put this in the theme? Where do you want it to show up? There's probably a module hook we could/should use instead. Adding features into the theme is usually not a good idea because if you want to change themes, you'll be out of luck. It's better to add all new features in the module layer.
Comment #4
nomonstersinme commentedi'd, personally, like to be able to reorder it like a cck field.
Comment #5
avpadernoI am closing this bug report, as Drupal 6 is no longer supported. Please re-open it if the issue is still relevant for the Drupal 7 or 8 version of the module.