Drupal

Commerce PayPal PLUS

New Drupal Modules - 18 December 2017 - 2:19am

This project integrates PayPal PLUS into the Drupal Commerce payment and checkout systems.

The development of this module has just started; there should be a release candidate available until the end of February 2018.

Categories: Drupal

Myadmin Toolbar

New Drupal Modules - 18 December 2017 - 12:12am

This module will hide top bar in Admin Toolbar.

Categories: Drupal

Star Rating Form Display

New Drupal Modules - 17 December 2017 - 6:30pm

This module tranform select tag of starrating module to clickable icon (more friendly)

Installation

Install as other Drupal modules. More detail here

Categories: Drupal

Dcycle: Migrating Webforms from Drupal 7 to Drupal 8

Planet Drupal - 17 December 2017 - 4:00pm

I recently needed to port hundreds of Drupal 7 webforms with thousands of submissions from Drupal 7 to Drupal 8.

My requirements were:

  • Node ids need to remain the same
  • Webforms need to be treated as data: they should be ignored by config export and import, just like nodes and taxonomy terms are. The reasonining is that in my setup, forms are managed by site editors, not developers. (This is not related to migration per se, but was a success criteria for my migration so I’ll document my solution here)
Migration from Drupal 7

I could not find a reliable upgrade or migration path from Drupal 7 to Drupal 8. I found webform_migrate lacks documentation (I don’t know where to start) and migrate_webform is meant for Drupal 6, not Drupal 7 as a source.

I settled on a my own combination of tools and workflows to perform the migration, all of them available on my Github account.

Using version 8.x-5.x of webform, I started by enabling webform, webform_node and webform_ui on my Drupal 8 site, this gives me an empty webform node type.

I then followed the instructions for a basic migration, which is outside the scope of this article. I have a project on Githubwhich I use as starting point from my Drpual 6 and 7 to 8 migrations. The blog post Custom Drupal-to-Drupal Migrations with Migrate Tools, Drupalize.me, April 26, 2016 by William Hetherington provides more information on performing a basic migration of data.

Once you have set up your migration configurations as per those instructions, you should be able to run:

drush migrate-import upgrade_d7_node_webform --execute-dependencies

And you should see something like:

Processed 25 items (25 created, 0 updated, 0 failed, 0 ignored) - done with 'upgrade_d7_node_type' Processed 11 items (11 created, 0 updated, 0 failed, 0 ignored) - done with 'upgrade_d7_user_role' Processed 0 items (0 created, 0 updated, 0 failed, 0 ignored) - done with 'upgrade_d7_user_role' Processed 95 items (95 created, 0 updated, 0 failed, 0 ignored) - done with 'upgrade_d7_user' Processed 109 items (109 created, 0 updated, 0 failed, 0 ignored) - done with 'upgrade_d7_node_webform'

At this point I had all my webforms as nodes with the same node ids on Drupal 7 and Drupal 8, however this does nothing to import the actual forms or submissions.

Importing the data itself

I found that the most efficient way of importing the data was to create my own Drupal 8 module, which I have published on Dcycle’s Github account, called webform_d7_to_d8. (I have decided against publishing this on Drupal.org because I don’t plan on maintaining it long-term, and I don’t have the resources to combine efforts with existing webform migration modules.)

I did my best to make that module self-explanatory, so you should be able to follow the steps the README file, which I will summarize here:

Start by giving your Drupal 8 site access to your Drupal 7 database:

$databases['upgrade']['default'] = array ( 'database' => 'drupal7database', 'username' => 'drupal7user', 'password' => 'drupal7password', 'prefix' => '', 'host' => 'drupal7host', 'port' => '3306', 'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', 'driver' => 'mysql', );

Run the migration with our without options:

drush ev 'webform_d7_to_d8()'

or

drush ev 'webform_d7_to_d8(["nid" => 123])'

or

drush ev 'webform_d7_to_d8(["simulate" => TRUE])'

More detailed information can be found in the modlue’s README file.

Treating webforms as data

Once you have imported your webforms to Drupal 8, they are treated as configuration, that is, the Webform module assumes that developers, not site builders, will be creating the forms. This may be fine in many cases, however my usecase is that site editors want to create and edit forms directly on the production, and we don’t want them to be tracked by the configuration management system.

Jacob Rockowitz pointed me in the right direction for making sure webforms are not treated as configuration. For that purpose I am using Drush CMI tools by Previous Next and documented on their blog post, Introducing Drush CMI tools, 24 Aug. 2016.

Once you install in your ~/.drush folder and run drush cc drush, you can use druch cexy and druch cimy and instead of drush cim and drush cex in your conguration management process. Here is how and why:

Normally, if you develop your site locally and, say, add a content type or field, or remove a content type of field, you can run drush cex to export your newly created configuration. Then, your colleagues can pull your code and run drush cim to pull your configuration. drush cim can also be used in continuous integration, preproduction, dev, and production environments.

The problem is that drush cex exports all configuration, and drush cim deletes everything in the database which is not in configuration. In our case, we don’t want to consider webforms as configuration but as data, just as nodes as taxonomy terms: we don’t want them to be exported along with other configuration; and if they exist on a target environment we want to leave them as they are.

Using Drush CMI tools, you can add a file such as the following to ~/.drush/config-ignore.yml:

# See http://blog.dcycle.com/blog/2017-12-18 ignore: - webform.webform.*

This has to be done on all developers’ machines or, if you use Docker, on a shared Docker container (which is outside the scope of this article).

Now, for exporting configuration, run:

drush cexy --destination='/path/to/config/folder'

Now, webforms will not be exported along with other configuration.

We also need to avoid erasing webforms on target environments: if you create a webform on a target environment, then run drush cim, you will see something like:

webform.webform.webform_9521 delete webform.webform.webform_8996 delete webform.webform.webform_8991 delete webform.webform.webform_8986 delete

So, we need to avoid deleting webforms on the target environment when we import configuration. We could just do drush cim --partial but this avoids deleting everything, not just webforms.

Drush CMI tools provides an alternative:

drush cimy --source=/path/to/config/folder

This works much like drush cim --partial, but it allows you to specify another parameter, –delete-list=/path/to/config-delete.yml

Then, in config-delete.yml, you can specify items that you actually want to delete on the target environment, for example content types, fields, and views which do not exist in code. This is dependent on your workflow and they way to set it up isdocumented on the Drush CMI tools project homepage.

With this in place, we’ll have our Drupal 7 webforms on our Drupal 8 site.

I recently needed to port hundreds of Drupal 7 webforms with thousands of submissions from Drupal 7 to Drupal 8.

Categories: Drupal

Forms Steps

New Drupal Modules - 17 December 2017 - 12:45pm
Description

Forms Steps provides an UI to create forms workflows using forms modes. It creates quick and configurable multisteps forms.
This module is currently still in alpha but is highly maintained and gives a nice overview of what can be done with that new forms modes feature integrated in Drupal8.

This project is born in top of a real business case. The core of that module is in use and all new features will be integrated.

Categories: Drupal

Field Group Extra Tags

New Drupal Modules - 17 December 2017 - 7:58am

Field Group lets you configure how to render a group of fields in the user side. It offers you different tags and the ability to add your custom classes. It also lets you choose which title tag to use for your nested groups, but the options are reduced to H2 and H3. That's fine on most cases, but sometimes you need to go deeper, and you need H4 or even H5.

This module does exactly that: it provides H4 and H5 tags for field group titles, as Field Group only provides H2 and H3 by default.

Status

Categories: Drupal

Gravatar integration for Avatar Kit

New Drupal Modules - 17 December 2017 - 3:46am

Gravatar integration for Avatar Kit.

Categories: Drupal

Scrpr Block

New Drupal Modules - 16 December 2017 - 2:24pm
What is Scrpr Block?

Scrpr Block provides configurable blocks with a link. The link text is scraped from the content to which the URL points.

This is useful if you want to link to a site that updates it's content regularly, but does not provide a feed. The content of the link text is retrieved from the URL and selected by the configured CSS selector. If no selector is provided the title element is selected by default.

Categories: Drupal

Google+ Login

New Drupal Modules - 16 December 2017 - 2:07pm

Allows users to log into your Drupal site with their Google account. An option is available to override the user/login path to direct all login requests to Google (Note: if this option is enabled the Drupal login form is available at user/site-login).

Categories: Drupal

JSXC: JavaScript XMPP Client with Video Chat

New Drupal Modules - 16 December 2017 - 2:00pm

Integrates with https://www.jsxc.org/

Categories: Drupal

Google OAuth

New Drupal Modules - 16 December 2017 - 1:41pm

THIS MODULE IS NOT ACTIVE.

Categories: Drupal

Geolocation Address Link

New Drupal Modules - 16 December 2017 - 11:15am
Geolocation Address Link What this module does

This module contains functionality to allow a geolocation field and an address field to be linked together. Each entity type that uses this functionality needs two fields:

Categories: Drupal

Sooper Drupal Themes: Try The SooperThemes Drupal 8 Experience With Our First Beta Release. Refinements for D7, One more thing..

Planet Drupal - 16 December 2017 - 10:02am
Drupal 8 Products Now Feature-Complete with New Media Library

A few months ago we released our first Alpha release on Drupal 8. Now we have full support for image re-usability thanks to the Entity Browser module and are ready to release our first beta! The beta hits feature-parity with the Drupal 7 products so you can start upgrading your websites if you're willing to be an early adopter. Download the beta here to test our Drupal themes and Drupal Drag and Drop builder:

Drupal 8 Beta Download

The result of our work with Entity Browser is a slick interface to search and select images. It's really a step up from Drupal 7's Media Browser. Entity Browser is becoming the standard for media management in Drupal 8 and we've made some contributions and customizations to get the interface up to our design standards. Here's a little demo video:

Shooting For Early January Release Of All Drupal 8 Themes And Modules It's going to be a hell of  a lot of work to get all 15 demos running on our Drupal 8 framework. The demos use different (probably some untested) features and additional contrib modules on top of what the main demo uses. This means there's not just the work of migrating and testing hundreds of content items but also different interactions between Glazed Builder and several modules. We're aiming for an early January release but can't make a hard guarantee. However, since the beta releases will be backwards compatible you can already start building our Drupal 8 projects if you're with being a beta tester and you don't need the demos that are yet to be ported.  Refinements and Minor Bug Fixes: Patch Release On D7 Products

We've been cleaning out out some minor bugs for Glazed Theme and Glazed Builder, trying to get the bug counter to zero before we release on Drupal 8. You can check the release notes for a full report but here's the management summary:

Glazed theme:
  • Added support for Navbar module (backport from D8 navbar)
  • Fixed issue with page titles hidden between page title background image
  • Fixed issue with secondary header region expanding when sticky footer option is enabled
  • Fixed issue of body scrolling while swiping mobile menu backdrop
  • Updated all colors to reflect 2018 Glazed branding
Glazed Builder
  • Fixed layout bug for websites using non-bootstrap theme with Glazed Builder
  • Updated design of image selection widget
  • Fixed issue with color picker
  • Added category selection to icons widget
  • Made icon search much faster (dropped jQuery ui from widget)
  • Fixed bug with Carousel element prev/next pager in Bottom-Left position
  • Updated all colors to reflect 2018 Glazed branding
Something Extra For The Holidays:

Something else was released this month that we're very excited about.. after many years of using Font Awesome 4 we now finally have Font Awesome 5 Pro! Because SooperThemes is a backer of this million dollar Kickstarter project we can now provide you with the Pro version of this enormous icon kit. Font Awesome 4 is not going anywhere, and will continue to exist along with Font Awesome 5 solid, light, and regular stroke icons.

On top of that we also added the 900-icon Google Material Design icon kit! We thought it would be a nice contrasting option compared to the more round lines of Font Awesome. Material Icons are more tightly drawn and perhaps more suited if you're going for a stark, hard-edged look.

We're super excited for everyone who's been waiting and emailing us about our Drupal 8 products, we're now confident you can start your Glazed project if your project's release is scheduled for january/february! If you're just curious you can spin up our Drupal 7 admin demo here: http://trysooperthemes.com/. To try our Drupal 8 beta release you'll have to sign up. Subscriptions start at just $78 USD and are guaranteed by our 20 day refund period.

Join SooperThemes To Get Full Access

Happy holidays! If you've got sales questions about our Drupal 8 products feel free to email us or drop a comment here. For feedback from testing the beta please use the feedback thread in our support forum.

Categories: Drupal

Cache Alter

New Drupal Modules - 16 December 2017 - 9:58am
Categories: Drupal

X-Frame-Options Allow-From webvisor.com

New Drupal Modules - 16 December 2017 - 8:38am

Just add HTTP-CORS-HEADER
x-frame-options:Allow-From: https://webvisor.com

If you want more options, use https://www.drupal.org/project/seckit

Categories: Drupal

Paragraphs admin

New Drupal Modules - 16 December 2017 - 7:38am

Additional admin tools to manage paragraphs.

  • List all the paragraphs: /admin/content/paragraphs
  • Delete required paragraphs

Requirements

Categories: Drupal

Paragraphs Wizard

New Drupal Modules - 16 December 2017 - 7:26am

This module implements a simple field formatter to show paragraphs of a specific type in a multistep wizard providing basic javascript controls such as "go to Next" / "go to Previous" steps.

Categories: Drupal

Geolocation Address

New Drupal Modules - 15 December 2017 - 4:46pm

Update a Geolocation field with the geocoordinates of an Address field when the entity is saved.

Each entity type that uses this functionality needs two special fields:

Categories: Drupal

Koban

New Drupal Modules - 15 December 2017 - 3:28pm

Provides an integration for KobanCRM tracking.

Requirements

Have a KobanCRM account and an active API Key

Installation

Install like any other Drupal module

Credits

Current maintainers:

Categories: Drupal

Wikipedia Client

New Drupal Modules - 15 December 2017 - 2:06pm

A client that can retrieve an extract of a Wikipedia page by searching for a page title that matches a given string. This works best for simple proper nouns, like the names of companies, people, countries, states, etc.

Example usage:

Categories: Drupal

Pages

Subscribe to As If Productions aggregator - Drupal