Hi.

I am trying to show my toolbox inside the Addthis block but with no success.

In fields there is extra configuration settings such as icon size.

But in the block settings i think choosing only the display type is not the answer.

Any ideas?

Thank you

Comments

matglas86’s picture

Hi frixos, good question. It is possible to dislay what you want. I'll explain.

The block implementation uses te default settings of a display type. Its true that you can not configure the same extra settings as in display's through a interface. I have not yet hat the time to implement this. But it is possible to manipulate the output. You can do this in code through a alter hook in your theme or module. The method to alter is addthis_markup_options.

Example: HOOK_addthis_markup_options_alter($options)

The block adds a reference that says "i'm a block display". In the options array the attribute #block and its block name are added. When youre alter is triggered you an say "is this a block?" and act on that to manipulate the settings and therefore the way its rendere after that based on the settings.

Take a look and if you can't figure it out let me know.

matglas86’s picture

Status: Active » Fixed

This issue is also disscussed in #1364848: Block basic toolbox displays Facebook and Twitter only and a fix was done on the code because a bug was in there. Please see that issue for more information.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jackhutton’s picture

when I add 'Addthis' as a block element to the page - yep, there are only two available services, twitter & facebook.
adding an addthis field is configurable in display tab. reviewing the comments .but this doesnt seem fixed. ( downloaded alpha and dev versions)