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.
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?
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 :(
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
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.
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.
AlbanL74CreditAttribution: AlbanL74 as a volunteer commented
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.
"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?
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.
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.
Comments
Comment #2
micropat CreditAttribution: micropat commentedAdmin > Structure > Blocks > Add & configure your AddToAny block > Visibility settings > Content types.
Comment #3
kazaa CreditAttribution: kazaa commentedComment #4
kazaa CreditAttribution: kazaa commentedsorry 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 :(
Comment #5
kazaa CreditAttribution: kazaa commentedI 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
Comment #6
spadstar CreditAttribution: spadstar commentedIt 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.
Comment #7
rsbarbano CreditAttribution: rsbarbano commentedHappend 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.
Comment #8
rsbarbano CreditAttribution: rsbarbano commentedComment #9
AlbanL74 CreditAttribution: AlbanL74 as a volunteer commentedI 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.
Comment #10
Kevin P Davison CreditAttribution: Kevin P Davison at Hook 42 for Go Overseas commented"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?
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedI 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.
Comment #12
micropat CreditAttribution: micropat commented#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
@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.