Closed (fixed)
Project:
AddToAny Share Buttons
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2017 at 15:12 UTC
Updated:
26 Feb 2018 at 21:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
musa.thomasComment #3
musa.thomasHere a quick patch to available on all entity. I know it's not optimized and we should have settings (in admin form or I think the best is to have checkbox option per bundle when you edit it).
Comment #4
musa.thomashere the patch for the 1.8
Comment #5
musa.thomasThe patch #4 have some issue with composer.json
Comment #7
micropat commentedThanks for the initial patches! Commit ba8deeb in the dev branch is optimized similar to what you suggested. A new hook is introduced to make the addtoany extra/pseudo-field available to other entity types. Usage example in a custom module:
The new hook was favored over new checkboxes in AddToAny settings because we'd like to avoid overcomplicating the options. Patches are welcomed if there are ideas for elegantly exposing the many bundles & entity types in AddToAny settings. Perhaps a form field that autocompletes multiple entity IDs, or some better approach?