Can someone update the module so you can add the button to specific content types instead of just the node in general?

CommentFileSizeAuthor
#7 addtoany_nodetype.txt994 bytesHansRoberto
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hansrossel’s picture

I'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.

jtjones23’s picture

+1 for displaying the button by content type

tsvenson’s picture

Dito. 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.

rbl’s picture

+1

fletch11’s picture

+3... pretty please.

krisrobinson’s picture

pretty please with sugar on top

HansRoberto’s picture

FileSize
994 bytes

I 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... ;-)

micropat’s picture

Assigned: Unassigned » micropat
Status: Active » Needs work
micropat’s picture

Status: Needs work » Closed (fixed)

Done!

Dirkozoid’s picture

Issue summary: View changes

Where 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.