Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It is possible to enable the Sharethis field to appear on certain content types, then hide the field on the content type display page. In hook_node_view()
it would be best to check if the extra field is disabled before loading Sharethis.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2458177-2-sharethis-javascript-added-when-field-hidden.patch | 1.97 KB | mstrelan |
Comments
Comment #1
babusaheb.vikas CreditAttribution: babusaheb.vikas commentedHi Mstrelan,
Will you explain in detail that what you actualy want?
Thanks
Comment #2
mstrelan CreditAttribution: mstrelan commentedSee http://www.joshwaihi.com/content/working-extra-fields-drupal-7
Specifically this part:
Patch attached.
Comment #3
purushotam.rai CreditAttribution: purushotam.rai at QED42 commentedComment #4
purushotam.rai CreditAttribution: purushotam.rai at QED42 commentedIssue has been fixed while working with #2702867: ShareThis added to node content array even if the extra field is set to hidden for the display mode. So, marking this issue as fixed as of now. Feel free to re-open if the issue persists.
Thanks a lot for all your efforts. We really appreciate a lot.
Comment #5
purushotam.rai CreditAttribution: purushotam.rai at QED42 commented