Not an urgent request but one which would really make this block infinitely more useful.
Would it be possible to build a feature in that allows for a user to make multiple styles of blocks with different icon sets etc. My use case is I would like to be able to use share this in multiple places over a website but also be able to create multiple share this blocks that have different icon sets as well as which networks are displayed.
For example I might want to put only 3 networks on a particular landing page but have more available in a blogging or article section. Or be able to use smaller icons at the top of a post and larger ones with counters at the bottom.
This would allow a user to hide or show blocks for mobile/responsive displays or display a different set of share this icons at the top of a node or at the bottom.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 0001-hacked-sharethis-view-handler-to-alter-icon-output.patch | 1.69 KB | amaisano |
Comments
Comment #1
ahillio commentedPut that in a block and you'll get a share button for each of those.
I'm assuming all of those have to be enabled in the Sharethis config area, but maybe not.
It might be necessary to also have the block provided by ShareThis module on that page (to inherit its' javascript?).
Comment #2
amaisano commentedI ran into a similar case and decided it'd be easiest to alter the share this variables when shown in a view. A views block can be created to suite many different situations so I thought that was more flexible.
As the notes in this code indicate, I will eventually expose these options in the Views config UI, and move it to a custom override module.
You can setup a Content-based View that outputs the ShareThis link field, and it will listen to the overridden variables hardcoded in the .inc file below when theming/rendering the links:
Comment #3
amaisano commentedHere's a patch with the same code:
Comment #4
ShareThis Support commentedHi There,
Thanks for your patience here! We've made some changes in our support organization and we're working through responding to these. We appreciate you posting the patch, and please don't hesitate to let us know if you have any additional questions.
Best
ShareThis Support
Comment #5
avpaderno