The Basic Toolbox, when selected for the Addthis Block, only shows the icons for facebook and twitter. It doesn't seem to take any of its settings from the configured services on the main addthis page, and it doesn't have the ability to write in services, separated by commas, like in the Content Type, Manage Display settings.
Updated: Comment #16
Problem/Motivation
The AddThis module contains a block. This block now allows to choose between the available displays. But it only uses the defaults of that display.
- Add the block.
- Select the Toolbox display.
- Results in only facebook and twitter icon.
Proposed resolution
- #8: First a patch was proposed with a form with states that added both the default implemented displays into the form.
- #15: The second solution is implement the same technique used by fields to select the display and be able to use the same form in all places.
Remaining tasks
Reviews needed
Tests to be written or run
Needs testing on different browsers.
Documentation to be written / updated.
UI needs some attention to be nice.
UI auto change when switching displays.
User interface changes
The UI is changed for the block settings. This needs to be tested on different browsers.
Original report by Pepper
The Basic Toolbox, when selected for the Addthis Block, only shows the icons for facebook and twitter. It doesn't seem to take any of its settings from the configured services on the main addthis page, and it doesn't have the ability to write in services, separated by commas, like in the Content Type, Manage Display settings.
How can you tell it to add more icons for the block view? I'm not seeing a way so I'm reporting this as a bug.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 1694868-block_settings.patch | 8.26 KB | matglas86 |
Comments
Comment #1
nflowers1228 commentedI had the same issue. I even added custom code in the field and still only 2 icons.
Comment #2
BioALIEN commentedUsing version 7.x-4.0-alpha1, you can add extra services via:
Home › Administration › Structure › Content types › [your content type] › Manage display
You can add any of the services listed by addthis. However, I haven't been able to add counters like the samples on the addthis.com get code page.
Comment #3
Pepper commentedYes, it works fine when attached to a content type, but you can't choose what services show up when you select the toolbox display in a block. And, it doesn't seem to go by the ones selected in the configuration, or if it does, only two of them show up.
Comment #4
cesabal commentedYes i have same problem when i want show in a block.... need add services
Comment #5
mogtofu33 commentedI got the same problem and currently it seems specific settings for block is not implemented.
Here is a patch file to add settings support on the block.
Regards.
Mog
Comment #6
ckrinaTried the patch against 7.x-4.0-alpha1 and worked fine. Thank you!
Comment #7
TelFiRE commentedExcellent patch! Why is it not applied :(
Comment #8
ckrinaI've adapted the#5 patch for 7.x-4.0-alpha2. Tried it in clean and non clean Drupal installations and worked fine for me.
Hope it helps.
Comment #9
ckrinaChanging status to needs review.
Comment #10
soulston commentedWorks for me and applies cleanly to 7.x-4.0-alpha2, not tried it against the latest dev which appears to be behind the alpha?
Comment #11
ckrinaJust tested 7.x-4.0-dev version too in a clean D7, and works fine for me. Anyway, other tests would be wellcome.
Comment #12
Anonymous (not verified) commentedI reviewed this as well. Seems to work fine.
Comment #13
plato1123 commentedWe should probably roll this into the 4.0 branch as a developer can waste a tremendous amount of time digging through all the different options screens, clearing caches, troubleshooting, only to find the module just doesn't work correctly.
edit: patch in #8 worked great for me, can we roll this into the module?
Comment #14
matglas86 commentedImplementing it like this is not an option unfortunatly. I know it works but...
AddThis implement display types dynamicly. So new display types can be added. With this implementation new implementations are not possible. I have been working on a config implementation in blocks that uses the same callback as field formatters. That is what we use to store display ttpe settings. But Ajax functionality is not working along. I have a development version in my github account.
https://github.com/matglas/addthis/tree/settings_form
All help is welcome on this. I know people dont use the module because of this.
Comment #15
matglas86 commentedI had some help with this from jeroen.b and some more work on my part and have working example of how I want it implemented. Please check this patchout.
There is a downloadable version of the module too here.
https://github.com/matglas/addthis/archive/feature/block_settings.zip
Comment #16
matglas86 commentedComment #17
matglas86 commentedUpdate the summary.
Comment #18
matglas86 commentedChanged title.
Comment #19
matglas86 commentedIf I don't receive feedback in the coming week I'm going to apply the patch and close the issue. I want to make some progress on the issues.
Comment #20
matglas86 commentedFixed with latest patch in commit 839da