Technology

Socializer - developer-friendly social media links module for Drupal

14 November, 2023
Socializer - developer-friendly social media links module for Drupal

How many times did you search for a module and whichever you choose you have some excess assets you are forced to load on your page or override? Probably more than you can count. At least I did. That’s how I came up with an idea to create a social media links module for developers. 

If you are a developer and don't want any predefined styles or icon sets, welcome to the club. Socializer is made for you.

So, what’s the difference you could ask? The difference is in the fact that the module contains only one simple configuration form where you choose the social media networks you would like to use and input links.

To access the configuration form, navigate to Configuration >> System >> Socializer from the Administration navigation. After that, you place the block from the Block Layout page and you have your social media links. If you want to give permission to a role other than administrator, there is a permission Administer Socializer configuration available.

Image
blog post socializer

Since there is no style and no icon sets for this module, it requires you to do some styling inside your theme. You don’t have to override any styles or preprocess anything, only to follow your theme and make it look the way you want it to look, without any excess. Also, if you don’t need any icons and want to show only text which is the name of the social media network, you most likely don’t need any additional styling for that block.

Each network has options for target and rel attributes and you can manage it on the configuration form for each network.

If you have a suggestion for module improvements, an idea for additional features or you have found a bug in it, please submit a Drupal.org issue and we will take a look at it shortly.

There are 21 available networks to choose from, but there might be some new or less popular networks missing. If so, please use the Drupal.org ticketing system to suggest it.

How to install? Simply follow Drupal composer guidelines for module management. The module is compatible with Drupal 8, 9 and 10.

Drupal ModulesSocial Media Integration