Commerce SDEK

New Drupal Modules - 10 March 2018 - 2:10am

Provides integration with popular Russian shipping service СДЕК API.

It currently does not provide Commerce Shipping method but only tools for Commerce Orders submissions to SDEK system and service points information updates.

Categories: Drupal

Available Updates to Slack

New Drupal Modules - 9 March 2018 - 6:37pm
Slack Update Notifier Description

An easy to use module that notifies you when there is an update to a module on Slack. It uses the plugin system to create Notification Types and posts to a Slack webhook when an update of the specified type is available.

Currently we support only Security Update notifications, please feel free to post other notification types.

Categories: Drupal

Oliver Davies: How to split a new Drupal contrib project from within another repository

Planet Drupal - 9 March 2018 - 4:00pm
Does it need to be part of the site repository?

An interesting thing to consider is, does it need to be a part of the site repository in the first place?

If from the beginning you intend to contribute the module, theme or distribution and it’s written as generic and re-usable from the start, then it could be created as a separate project on Drupal.org or as a private repository on your Git server from the beginning, and added as a dependency of the main project rather than part of it. It could already have the correct branch name and adhere to the Drupal.org release conventions and be managed as a separate project, then there is no later need to "clean it up" or split it from the main repo at all.

This is how I worked at the Drupal Association - with all of the modules needed for Drupal.org hosted on Drupal.org itself, and managed as a dependency of the site repository with Drush Make.

Whether this is a viable option or not will depend on your processes. For example, if your code needs to go through a peer review process before releasing it, then pushing it straight to Drupal.org would either complicate that process or bypass it completely. Pushing it to a separate private repository may depend on your team's level of familiarity with Composer, for example.

It does though avoid the “we’ll clean it up and contribute it later” scenario which probably happens less than people intend.

Create a new, empty repository

If the project is already in the site repo, this is probably the most common method - to create a new, empty repository for the new project, add everything to it and push it.

For example:

cd web/modules/custom/my_new_module # Create a new Git repository. git init # Add everything and make a new commit. git add -A . git commit -m 'Initial commit' # Rename the branch. git branch -m 8.x-1.x # Add the new remote and push everything. git remote add origin username@git.drupal.org:project/my_new_module.git git push origin 8.x-1.x

There is a huge issue with this approach though - you now have only one single commit, and you’ve lost the commmit history!

This means that you lose the story and context of how the project was developed, and what decisions and changes were made during the lifetime of the project so far. Also, if multiple people developed it, now there is only one person being attributed - the one who made the single new commit.

Also, if I’m considering adding your module to my project, personally I’m less likely to do so if I only see one "initial commit". I’d like to see the activity from the days, weeks or months prior to it being released.

What this does allow though is to easily remove references to client names etc before pushing the code.

Use a subtree split

An alternative method is to use git-subtree, a Git command that "merges subtrees together and split repository into subtrees". In this scenario, we can use split to take a directory from within the site repo and split it into it’s own separate repository, keeping the commit history intact.

Here is the description for the split command from the Git project itself:

Extract a new, synthetic project history from the history of the subtree. The new history includes only the commits (including merges) that affected , and each of those commits now has the contents of at the root of the project instead of in a subdirectory. Thus, the newly created history is suitable for export as a separate git repository.

Note: This command needs to be run at the top level of the repository. Otherwise you will see an error like "You need to run this command from the toplevel of the working tree.".

To find the path to the top level, run git rev-parse --show-toplevel.

In order to do this, you need specify the prefix for the subtree (i.e. the directory that contains the project you’re splitting) as well as a name of a new branch that you want to split onto.

git subtree split --prefix web/modules/custom/my_new_module -b split_my_new_module

When complete, you should see a confirmation message showing the branch name and the commit SHA of the branch.

Created branch 'split_my_new_module' 7edcb4b1f4dc34fc3b636b498f4284c7d98c8e4a

If you run git branch, you should now be able to see the new branch, and if you run git log --oneline split_my_new_module, you should only see commits for that module.

If you do need to tidy up a particular commit to remove client references etc, change a commit message or squash some commits together, then you can do that by checking out the new branch, running an interactive rebase and making the required amends.

git checkout split_my_new_module git rebase -i --root

Once everything is in the desired state, you can use git push to push to the remote repo - specifying the repo URL, the local branch name and the remote branch name:

git push username@git.drupal.org:project/my_new_module.git split_my_new_module:8.x-1.x

In this case, the new branch will be 8.x-1.x.

Here is a screenshot of example module that I’ve split and pushed to GitLab. Notice that there are multiple commits in the history, and each still attributed to it’s original author.

Also, as this is standard Git functionality, you can follow the same process to extract PHP libraries, Symfony bundles, WordPress plugins or anything else.

Categories: Drupal

Null User

New Drupal Modules - 9 March 2018 - 2:56pm
Categories: Drupal

Queue order UI

New Drupal Modules - 9 March 2018 - 2:25pm

This is UI for Queue Order module.

Categories: Drupal

CDN Library API

New Drupal Modules - 9 March 2018 - 11:59am


Categories: Drupal


New Drupal Modules - 9 March 2018 - 10:45am
Categories: Drupal

Toggle view display

New Drupal Modules - 9 March 2018 - 10:44am

Easily get list or grid results of the same view with this handy tool

Categories: Drupal

Draggable dashboard

New Drupal Modules - 9 March 2018 - 8:36am

The purpose of the module is to create dasboards for users, that consist of different blocks.

Draggable dashboard allows privileged users create dashboards that can be placed as blocks anywhere on the website.

For each dashboard a layout and blocks for display can be configured.

Users can drag the blocks around on the dayboard and maximize or minimize blocks.

Categories: Drupal

Customers Canvas

New Drupal Modules - 9 March 2018 - 7:24am

Integration module for https://customerscanvas.com/

Tracks API connection details and provides JS that injects the appropriate iframe code to a user-customizable path. Includes integration with Drupal Commerce, but not a required integration.

Categories: Drupal

Acquia Developer Center Blog: Securing Non-Production Environments

Planet Drupal - 9 March 2018 - 7:23am

One of the common issues I've noticed when working with customers is the tendency to treat non-production environments, such as dev or stage, as less important with respect to security.

This is understandable since these environments are effectively disposable and could be rebuilt from production at any time. However an important consideration that should be taken into account is what data lives in these environments.

Tags: acquia drupal planet
Categories: Drupal

Dadata.ru IP 2 Address API

New Drupal Modules - 9 March 2018 - 5:54am

The module helps to determine geographical address by IP using dadata.ru service. This service provides address information for Russian IPs. It provides accurate results and correct location names in Russian.
Dadata.ru is commercial service and auth token is requried to use it's API. But 10000 daily requests to it's API is free and due to local database caching this should be enough for most sites.

The module provides an API for other Drupal modules.

Categories: Drupal

Valuebound: Componentizing Drupal Front End using Pattern Lab

Planet Drupal - 9 March 2018 - 5:33am

Componentization has become a growing consideration in most of the web application development firms. The reasons are obvious, instead of reinventing the wheels again and again, why don’t we re-use them. This article will help you to understand the importance of componentizing your Drupal front end and how you can achieve that using Pattern Lab.

So what is Componentization?

In front-end perspective, components are a collection of HTML, CSS, and JS that combines together to form a display element and Component-Driven Development (CDD), a development methodology by which the web pages are built from the bottom up. 'Componentization' is the process of breaking things down into small and easily…

Categories: Drupal

DNT Aware Page Cache

New Drupal Modules - 9 March 2018 - 3:54am

This module provides a page cache for anonymous users that behaves identically to the Drupal Core Internal Page Cache Module with one exception: it stores cached versions for users with the Do Not Track (DNT) header set separately from those without.

This is important for ensuring conformance of data gathering scripts in jurisdictions and for clients who wish to respect Do Not Track.

The module should not be active at the same time as the normal Drupal Core Internal Page Cache, and implements hook_requirements() in order to complain when the core cache is active.

Categories: Drupal

Queue order

New Drupal Modules - 9 March 2018 - 3:31am
Categories: Drupal


New Drupal Modules - 9 March 2018 - 2:50am

This module will implement the bit-list library into drupal 8. This will enable you to create, use and modify bit lists, or bit arrays.

The original code of the module is available at :


The library code is available at:


Categories: Drupal

OPTASY: What Are Some of The Best Free Drupal 7 E-commerce Themes?

Planet Drupal - 9 March 2018 - 2:12am
What Are Some of The Best Free Drupal 7 E-commerce Themes? silviu.serdaru Fri, 03/09/2018 - 10:12 The “best” meaning “full-featured”, packed with plenty of built-in functionalities for eCommerce, granting your site both a visually-appealing and USABLE design. So, which are these top themes? To help you save valuable time, we've narrowed down all the options of free Drupal 7 eCommerce themes to a list of 5.
Categories: Drupal

Ixis.co.uk - Thoughts: Last Month in Drupal - February 2018

Planet Drupal - 9 March 2018 - 2:00am
February has been and gone so here we take a look back at all the best bits of news that have hit the Drupal community over the last month.
Categories: Drupal

PDF Highlight

New Drupal Modules - 9 March 2018 - 1:41am

Highlights PDF text from Drupal text search using Mozilla's PDF.js library.

Covers Search API Solr Search.
Core and Search API search to be added.

Categories: Drupal

Lucius Digital: Always secure the files on your website properly | why (and how to do it in Drupal)

Planet Drupal - 9 March 2018 - 1:24am
Per May 25th 2018, the General Data Protection Regulation comes into effect, making it advisable to have an extra check on the security of your data. Here are some tips on securing files in Drupal:
Categories: Drupal


Subscribe to As If Productions aggregator - Drupal