Hello,
I configured this module I have a problem with placement in node types. I choose a few of them but block is visible in all types. How can I distinguishe for specific types of page?

CommentFileSizeAuthor
#5 2.JPG79.29 KBkazaa
#5 1.JPG29.57 KBkazaa
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kazaa created an issue. See original summary.

micropat’s picture

Title: Placement does not work » How to display an AddToAny block for specific node types
Category: Bug report » Support request
Status: Active » Closed (works as designed)

Admin > Structure > Blocks > Add & configure your AddToAny block > Visibility settings > Content types.

kazaa’s picture

Status: Closed (works as designed) » Needs review
kazaa’s picture

sorry becasue I do not mention about this, but I know this and I did this. But it is not help me, after choose this visibility content type I see AddToAny block in all my content types :(

kazaa’s picture

FileSize
29.57 KB
79.29 KB

I do not understand, I have a few custom contents, I checked in 'Admin > Structure > Blocks > Add & configure your AddToAny block > Visibility settings > Content types' all of I need. One of custom content not have pseudo field 'AddToAny'?

Why?
I checked in configuration site but still it is not visible only in one content...
Please look for screenshots

spadstar’s picture

It seems the block visibility settings have no effect. You might need to disable the AddToAny field for each content type via its 'Manage display' page:
admin > structure > types > manage > [content type] > display
Change the format from visible to hidden here for each view mode required. This worked for me.

rsbarbano’s picture

Happend to me too. I enable addtoany block visualization for only for one content type and it showed in all. Disabling each visualization as per #6 seems to do the trick.

Edit Forgot to mention, i'm working in drupal 8.x-1.7 and this problem seems to persist.

rsbarbano’s picture

Version: 7.x-4.12 » 8.x-1.7
AlbanL74’s picture

I have the same issue with AddtoAny on Drupal 8. The content type visibility restrictions don't apply and I don't know how to hide the social buttons from my homepage, because of that. Can somewhat detail a method? Thank you.

Kevin P Davison’s picture

"Manage display" of your content type and view mode(s). Make sure "AddToAny" is disabled if you don't want AddToAny to show up in a view mode. That's if you want to use the "AddToAny buttons" block(s) instead of the field on your content type(s). Hope this helps?

Anonymous’s picture

I just recognized that the AddToAny does not appear for anonymous users only. This applies when adding them with a block and when adding them in the content type manage display. Have Drupal 8.2.5 and AddToAny 8.x-1.7. Maybe this helps to sort out the issue.

micropat’s picture

Title: How to display an AddToAny block for specific node types » Displaying AddToAny for specific node types
Version: 8.x-1.7 » 7.x-4.14
Status: Needs review » Closed (works as designed)

#2 answers the original question about blocks.

kazaa's next issue was expecting an extra/pseudo field. The 7.x branch does not yet offer an extra/pseudo field per content type. It's a planned feature.

7.x versus 8.x

  • 7.x has "automatic" placement (in AddToAny settings) where the buttons are appended to the selected sections of selected node types — these placement settings are separate from the settings of an AddToAny Block, a Views field, and a Display Suite field.
  • 8.x has [better] placement settings via the Manage Display form per content type since 8.x-1.5.

@rsbarbano @albanl74 do a cache refresh after making such changes in 8.x. Create your own support request after troubleshooting your site if you still have an issue.