Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Can someone update the module so you can add the button to specific content types instead of just the node in general?
Comment | File | Size | Author |
---|---|---|---|
#7 | addtoany_nodetype.txt | 994 bytes | HansRoberto |
Comments
Comment #1
hansrossel CreditAttribution: hansrossel commentedI've just upgraded from 6.x-1.36 to 6.20 because 6.x-1.36 was marked as unsupported in update status, but see now also that the option which was available in 6.x-1.36 to select which content types the button should be shown has been removed (or moved?). It was available under permissions in 6.x-1.36.
Comment #2
jtjones23 CreditAttribution: jtjones23 commented+1 for displaying the button by content type
Comment #3
tsvenson CreditAttribution: tsvenson commentedDito. Even better if it could be configured when creating content. That is I can select when I actually create the content if I want it to be on the page or not.
Comment #4
rbl CreditAttribution: rbl commented+1
Comment #5
fletch11 CreditAttribution: fletch11 commented+3... pretty please.
Comment #6
krisrobinson CreditAttribution: krisrobinson commentedpretty please with sugar on top
Comment #7
HansRoberto CreditAttribution: HansRoberto commentedI did some altering of the existing code to be able to choose witch node type to display the AddToAny button on. Hopefully you understand what I have written in the uploaded file. Feel free to ask.
It includes the node types as checkboxes on the admin page for AddToAny.
I hope that this feature will be include in the next update, so that we don't have to edit the files every time ;-)
Cheers!
/Hans Gustavsson
EDIT: I don't know how to make a "patch"... sorry. This is just a guide with the code in it... ;-)
Comment #8
micropat CreditAttribution: micropat commentedComment #9
micropat CreditAttribution: micropat commentedDone!
Comment #10
Dirkozoid CreditAttribution: Dirkozoid commentedWhere can I find this option? The buttons are also shown on node types where they shouldn't. I configured the block with a headline ('Share") and it shows only on the specified content types, but the buttons itself are shown also on other nodes.
EDIT: It seems that the buttons always show up on the default content types 'article' and 'page'. I created my own content type 'my page' for my static content, but find this rather annoying.
Also the AddToAny-Block is shown on node create and edit pages. Why? It doesn't really make sense to share not yet saved content.