Closed (fixed)
Project:
AddToAny Share Buttons
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 May 2017 at 18:20 UTC
Updated:
11 Mar 2018 at 00:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
amairesse commentedI got it working this way - requires Display suite
1/ In Structure > Display Suite > Fields (admin/structure/ds/fields), add a field of type "Block". Give it a name (e.g. AddToAny), check "Media" in entities and select the "AddToAny buttons" block, save
2/ Go to Structure Media bundles (structure/media) and select Manage display in front of your Media Bundle and enable Display suite for this bundle by selecting in "Select a layout" one of the Display suite layouts.
Move the field you just created from the "Disabled" section to the "Content" section and save
Comment #3
igalafate commentedI was looking for this functionality as well. I have attached a patch to be applied on the AddToAny module as a first approach to be used with media entities using the Media Entity module.
Comment #4
igalafate commentedSorry, I the last one does not apply using composer. Here is the good one.
Comment #5
micropat commentedThanks for the patch @isaura — it's just a few hours behind! A very recent dev commit (ba8deeb) simplifies the addition of entity types — line 39 of addtoany.module.
You're welcome to provide the one-liner patch. :)
Comment #7
micropat commentedThe AddToAny extra/pseudo-field is now available by default for “media” entities in the
devbranch.This feature is expected to be in the next module release,
8.x-1.9.