Drupal 7 Service Links Module

By shane
Wed, 2013-02-06 07:31
Daily Dose of Drupal Episode #103

Share with Others

The Drupal 7 Service links module makes it easy to add social networking or bookmarking links and widgets to your Drupal 7 website. From Facebook, to Twitter, to Google Plus, and more... this module has it all.

In this episode you will learn:

  • How to download and configure the various settings in the Service Links module
  • How to add service links and service widgets to a content type page

Thanks to today's sponsor Drupalize.me

Hello everyone and welcome to another Daily Dose of Drupal, today we’re on episode number 103. Today we’re going to be going over the Service Links Module. The Service Links Module makes extremely easy to add social networking and sharing links to your Drupal website. In fact it’s one of the easiest way to get started if you want to add not only links for social networks but also different widgets from Twitter and Facebook, Google +, LinkedIn and among others.

But before we get started I’m Shane Thomas, you can follow me on Twitter @smthomas3, also go to codekarate.com and sign up for the newsletter and we’d like to thank drupalize.me for sponsoring this episode of the Daily Dose of Drupal. Go ahead and use coupon code CK20FEB for 20% off at drupalize.me.
If you haven’t use drupalize.me or haven’t look into it go ahead and take a look, it’s one of the best ways to learn Drupal. It’s helped me a lot in the past and it can help you as well whether you’re a beginner or an advance Drupal developer, they can help you so go check it out.

Let’s go ahead and get started; so one of the things that you’ll notice when you download the Service Links Module is there is an extremely large amount of modules that come with it so if you come into service links you can see that there’s a couple here but we get on to the Service Links services you can see there’s an extremely large amount in this section as well.

So the first thing we’re going to do is turn on just the main Service Links Module and I’m just going to turn on just a couple of these services. The Genera Service is just one which is one that you’re going to probably want most of the time as well as the widget services which allows you to have a Facebook Like button, your Google + 1 and your Twitter widget as well.

You can see there’s a ton of other different types of services, you can take a look and see if they apply to your site and of course add that if you need them. So I’m going to go ahead and save this, as soon as this comes back up I’m going to come back in to the services section and I’m going to click on configure. There are a lot of settings here so I’m not going to go over all of them, I’m going to freeze through them but you can always come back in and try them out.

A lot of them have to deal with where to display the Service links and how to display them among the content. So the first thing is the content types that you want to display the links for. I’m going to go ahead and just select Article, you can of course have them display for any other type of content on your Drupal site.

You can also show them for terms from the selected vocabularies so in this case I only have the tags vocabulary but I could check this box that wanted to show up for that term. Basically in this … where to show Service Links section you’re going to tell it where you actually want the links to show up. So it shows this in the links section right now on teasers and full page view.

That’s the default and that’s where I’m going to leave it but you can see you can show just on the full page just on the teaser or you can completely disable it and also you can say you wanted to display service links in nodes and you can have it show up right after the text of the contents.

So if you want to it not in the link section but actually after the text of the node you can use this option here. You can use page specific visibility so if you don’t want everything ever to show up on the homepage or you don’t want things to show up on certain paths you can go ahead and exclude or include them there, you can choose if you want to show just text just image or both, I’ll leave it a default you can also not show links of the contents not published and don’t show links that the user is the author of the node.

Here you can select and add your icons so all you need to do is find the folder and you can add your own icons and use this change folder and then you can always fall back the default icons if your icons are missing for whatever reason. So it allows you the flexibility to really select your icons that you want for the various social networking or sharing sites that you want to have the icons for.

I’m going to select that I want to open the link in a new window, that’s just my preferences. You can have it in the same window or you can have it open in a new window, you can add a following text to the URL, you can change the title tag with the sharing and you can select whether you’re not … you want to use short links. So you can see there’s a ton of configuration options, I did the very minimum but you can go ahead and experiment and see what works for you.

On the services pages you’re going to list all the different services. I’m going to go ahead and turn on the Show Dig Smart button link which is a widget. As you can see there’s list General Services and Widget Services, I’m going to show the Facebook like link, the Google+ 1 widget. I’ll go ahead and add the delicious links as you can see so them as a general services listed in there.

I will also go ahead and add Read It, Stumble upon and Twitter. That’s enough for now but you can of course configure this to your needs, I’m going to go to the last tab here which is widgets. Here you can add different configuration options for each widget so I can set my Twitter handle here, you can have select how you want to counter to display.

There’s a couple of different options for the Facebook Like widget, if you want a button or standard of box count, you can set the width font whether not to show faces which action to take the big button, you can select different type Google +, you can select different sizes in whether or not to show the counter and link in share button you can also make some changes as well. So pretty flexible; the goal is you have this one module that panels all the sharing and bookmarking functions for your entire Drupal site. So let’s go ahead and get started and actually taking a look at this module.

So now that I have everything configured I’m just going to wait for the page to load and I’ll scroll down and find the article. As you can see it immediately see these social sharing links. There’s the Like button, the Google + button and the tweet. I guess these are all widgets as well as a couple of other ones here.

So I’m going to go ahead and go into this, so I’m going to go ahead and show just so I can click the tweet widget there, tops it up, it adds my Twitter handle at the end, brings in the title, brings in the URL, it can of course just send out the tweet through that if I wanted to estimate this to stumble upon I simply click that, it’ll of course add it to Stumble Upon and these other links of course to their respective things depending on the social network.

So as you can see extremely easy to get started, you simply turn the module on, configure the services you want, change the settings, select the content types or taxonomy, I believe there’s also some blocks that you can set it up so it doesn’t have to be in the link section and you can maybe use the block if you want it somewhere else. So it’s very flexible, let’s you control where you want this links and you want these links and you can then and allow your users to start sharing on your Drupal site.

So that’s it for this time on the Daily Dose of Drupal, thanks again to drupalize.me and make sure you check them out and thank you for watching the Daily Dose of Drupal, see you next time.