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

CommentFileSizeAuthor
#8 1312494-one-or-more-widgets-8.diff2.43 KBheshanlk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TheCrow’s picture

Hi 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:

  $services_ids = array('twitter_2', 'facebook_2');
  $services = service_links_render_some($service_ids);

  print implode('', $services);

the doc page describe the other parameters.

I guess on the third branch we will solve the problem about custom settings.

brujo321’s picture

are this working?

TheCrow’s picture

Version: 6.x-2.1 » master
Category: support » feature

Multi-config will be part of Service Links 3.x

mrfelton’s picture

I'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.

mrfelton’s picture

I 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.

TheCrow’s picture

thanks mrfelton added this info in the main page

Satri’s picture

Wow - 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

heshanlk’s picture

Version: master » 7.x-2.x-dev
Component: Miscellaneous » Code
Status: Active » Needs review
FileSize
2.43 KB

This (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!