I successfully use this great module to include service links directly at the bottom of "story nodes" (ie not in a block).
However, I'd like 'Service links' to also be displayed in a block and linking to my front page page. But the thing is, I want a different set of Services for the block than what I have for the 'story nodes'. For the block, I want only Google +1, Facebook and Twitter to be enabled and reference to the front page and with their own configurations (e.g. I want the link counts to be shown for the block, for not for individual story nodes).
How can this be done? At the moment, I can activate a 'Service links' block, but it uses the same services as my story nodes and the same configurations, while I want a different set of services for the block with different configurations. Thanks! Alex
Comment | File | Size | Author |
---|---|---|---|
#8 | 1312494-one-or-more-widgets-8.diff | 2.43 KB | heshanlk |
Comments
Comment #1
TheCrow CreditAttribution: TheCrow commentedHi Alex,
Actually the settings in the widgets can't be overriden because the whole structure was not projected for that, there are technical issue also on the javascript that they use...
The unique way is duplicate the whole Widget Service module, give it another name and change the ids, functions names, ... then duplicate and change some small part also in their javascript.
For print a part of them in your custom block just use the API as did below:
the doc page describe the other parameters.
I guess on the third branch we will solve the problem about custom settings.
Comment #2
brujo321 CreditAttribution: brujo321 commentedare this working?
Comment #3
TheCrow CreditAttribution: TheCrow commentedMulti-config will be part of Service Links 3.x
Comment #4
mrfelton CreditAttribution: mrfelton commentedI'd really like to see this implemented as a Bean plugin. Here is a good example where a bean plugin has been written for twitter_pull - http://drupal.org/project/bean_twitter_pull. I think that would provide the most flexible solution, and save reinventing the wheel to support multiple configurations.
Comment #5
mrfelton CreditAttribution: mrfelton commentedI created a basic module that does this at http://drupal.org/project/bean_service_links. Currently, it you can create as many blocks as you like, and each one can have it's own list of enabled services. All other settings are currently pulled from the main service links settings, but it shouldn't be too hard to make these configurable per block too.
Comment #6
TheCrow CreditAttribution: TheCrow commentedthanks mrfelton added this info in the main page
Comment #7
Satri CreditAttribution: Satri commentedWow - thanks. Only thing missing for me to try and use it is a D6 port...
(will make a feature request on the bean service links project right away)
Cheers - Alex
Comment #8
heshanlkThis (views field) patch allows you to create different number of blocks or whatever using fields in Views and in the field configs you can set which services to display. So worth reviewing.
Steps:
1. go to create a new block view
2. Add new field service links.
3. Change configurations and save!