Manage display extras

New Drupal Modules - 27 March 2019 - 1:15am

Additional features for the manage display module


Categories: Drupal

AddWeb Solution: What is govCMS?

Planet Drupal - 26 March 2019 - 10:54pm

What is govCMS?

The govCMS distribution is supported in Drupal 7 and Drupal 8 version, which has installation profiles for Australian government websites and it is being actively managed on Github (https://github.com/govCMS/govCMS8) and features are maintained from https://www.govcms.gov.au/.

To work with govCMS, we have to take care of some factors in order to create a site with the govCMS platform.

They have limited number of the module they support and we have to stick to that only and need to find alternate options with the twig and preprocess functions only and they do not allow us to create custom modules as well.

Here is the list of modules that they support: https://www.govcms.gov.au/govCMS-d7-modules

Unfortunately supported modules for Drupal 8 are less compare to Drupal 7, but we can create support request of community and if it's valid then they can include a module on SaaS platform.

Our Experience about working with govCMS

We have worked with govCMS for one of our clients from Australia, who is working with another agency before we met, and already he had started site development with them, and fortunately, he gets to know about the quality of work done so far from the previous agency.


They have added lots of contrib modules and to achieve some functionality they have created custom modules as well, but as the govCMS platform doesn't support such modules we have to flush out all existing implementation and started from the beginning.


All features which are build using custom/contrib modules, we had to find alternatives and get things done only with supported modules and using preprocess functions and twig alters. and along with that, we have to make sure that site is WCAG compliance as it is a government website they must be. So all things we delivered to the client successfully as per the client's expectation with the boundary of govCMS restriction.


More details about what is govCMS

Drupal gets big in the Australian Government

With almost half of Australian Government departments now running Drupal, and hundreds of more sites now live within various agencies, Drupal has transformed the way government websites are built and managed.

Drupal 7 : https://www.drupal.org/project/govcms

Drupal 8 : https://www.drupal.org/project/govcms8

The aim is to provide a single solution for unclassified websites using a common codebase and a shared feature set on a scalable and secure list infrastructure.

govCMS distribution is supported as SaaS by amazeelabs in collaboration with govCMS community and it supports several contributed modules which are available, here is a list of modules which can be used with SaaS https://www.govcms.gov.au/govCMS-d7-modules.

Workflows and Ahoy

It is interesting to see that the .ahoy.yml is just a set of command shortcuts, which is similar to the scripts section of a composer.json. Every implementation can be smoothed over by a single Ahoy command, and the underlying implementation can evolve without the developer even noticing.

Speculating, I think the hardest part about adding Ahoy commands will be naming them. Even then, the GovCMS team will have the luxury of focussing on the "SaaS govcms 8 on Lagoon" use case, rather than something like BLT which attempts to have commands for "any Drupal anywhere".

Categories: Drupal

Flocon de toile | Freelance Drupal: Automatically provide options to a list field type with Drupal 8

Planet Drupal - 26 March 2019 - 5:54pm
Drupal 8 has a multitude of field types to cover a large number of use cases and situations when it comes to structuring and modeling content. Among these, we have a List field type which, as its name suggests, allows us to configure an input field based on a list of predefined options. This list of options must be set manually in the field's storage options at the time of creation. But we can also use this field based on a list of options that can be provided dynamically. Let's look at how we need to proceed to have a field that allows us to choose from a list of dynamic options.
Categories: Drupal


New Drupal Modules - 26 March 2019 - 3:10pm

SearchStax (https://www.searchstax.com) integration.

Drupal 8.x version under development.


Categories: Drupal

Lullabot: UX For Kids: A Personal Journey

Planet Drupal - 26 March 2019 - 2:12pm

As a user experience designer, most of my career has been focused on designing for adults. When the opportunity arose to help redesign a product for kids, I jumped at the chance to learn something new. Though, switching focuses from serving adult audiences to children proved to be a challenge. I'm not a parent and also usually do not interact with kids on a daily basis.

Categories: Drupal

Entity Extra Field

New Drupal Modules - 26 March 2019 - 1:56pm

The entity extra field module allows site administrators to add various extra fields to an entity display. These extra fields can consist of blocks, views, or token values. Both entity form and view displays are supported.

Adding extra fields is really common when you're building robust web applications that need to render extra data for a given entity. Allowing for missing elements such as page title, or potentially a block that needs to be render between two pieces of content are some examples.

Categories: Drupal


New Drupal Modules - 26 March 2019 - 1:08pm

Provides integration with https://haltu.github.io/muuri/

Categories: Drupal

paragraphs slider

New Drupal Modules - 26 March 2019 - 12:58pm

Paragraphs slider is a simple module to contribute with Paragraphs.
Basically able to user to add Slick slider in any Content Type.
Steps to activate:
1- Activate module.
2- Go to Content Type and add field Paragraphs
3- In field config, in section "Bundle" select "Slider Container".
4- Now, when you add a new node from Content Type you can select various sliders and images for node.

Categories: Drupal

How to remove YouTube tracking

Dries Buytaert - 26 March 2019 - 12:14pm

I don't use Google Analytics or any other web analytics service on dri.es. Why not? Because I don't desire to know how many people visit my site, where they come from, or what operating system they use.

Because I don't have a compelling reason to track my site's visitors, I don't have to bother anyone with a "cookies consent" popup either. That is a nice bonus because the web is littered with those already. I like that dri.es is clutter-free.

This was all well and good until a couple of weeks ago, when I learned that when I embed a YouTube video in my blog posts, Google sends an HTTP cookie to track my site's visitors. Be damned!

After some research, I discovered that YouTube offers a privacy-enhanced way of embedding videos. Instead of linking to youtube.com, link to youtube-nocookie.com, and no data-collecting HTTP cookie will be sent. This is Google's way of providing GDPR-compliant YouTube videos.

-nocookie.com/embed/video-id" frameborder="0">

So I went ahead and updated all blog posts on dri.es to use youtube-nocookie.com.

In addition to improving privacy, this change also makes my site faster. I used https://webpagetest.org to benchmark a recent blog post with a YouTube video.


When embedding a video using youtube.com, Google uses DoubleClick to track your users (yellow bar). A total of 22 files were loaded, and the total time to load the page was 4.4 seconds (vertical blue line). YouTube makes your pages slow, as the vast majority of requests and load time is spent on loading the YouTube video.


When using youtube-nocookie.com, Google no longer uses DoubleClick to track your users. No HTTP cookie was sent, "only" 18 files were loaded, and the total page load time was significantly faster at 2.9 seconds (vertical blue line). Most of the load time is still the result of embedding a single YouTube video.
Categories: Drupal

Aten Design Group: Functional Testing with Katalon Recorder

Planet Drupal - 26 March 2019 - 9:39am

When it comes to testing in software development, the range of options is huge. From unit testing on the backend through browser compatibility testing on the front end, there are a variety of testing approaches that will save you, your clients, and their audiences, time and headache. Katalon Recorder is a quick, simple way to get started with testing and to see the value that automated tests provide within a matter of minutes.

What is Katalon Recorder?

Katalon Recorder (KR) is a Selenium-driven browser plugin for Chrome and FireFox that lets you control your browser with simple commands instead of actual clicking, typing, tabbing, and scrolling. Put simply, KR can interact with your web application and report back when things don’t go as planned. Katalon Recorder aims to emulate human actions such as clicking, typing, and verifying the status of onscreen content - and as such works very well as an automated replacement for human testing.

How does it work?

With Katalon Recorder, you can record your browser actions - such as clicking through your menu items - and then play those actions back as automated commands. You can also handcraft a wide variety of commands that assert the existence of HTML elements or copy, among a host of other things. The successful playback of well crafted tests indicates that your menus, content, and HTML structure haven't changed — in other words your application is behaving as expected.

The Basics: Record and Playback

After clicking Record KR will bring your browser into focus, then log all of your interactions as individual commands. Once Stop is clicked, those commands can be played back, saved to a file, shared with others to play in their browsers, or modified to fine-tune functionality. With Katalon Recoder’s Record feature setting up initial tests that mirror human-driven clickthroughs takes moments of your time and can then be played back by anyone anywhere — including non-technical staff or even client teams.

Creating Complex, Rigorous Tests

Katalon Recorder allows you to organize one or more individual commands as Test Cases, and one or more Test Cases as Test Suites. Complicated tests can be created by chaining together several Test Suites. You could, for example, write tests that log a test user in, search for a product by SKU, click into the results, add the product to their cart, navigate to the cart and assert the product is there, then complete the purchase using test financial data. All of those actions except assert the product is in the cart can be recorded from your interactions. That means that in many cases, the amount of time that it takes for you to perform an action on your website is, using the recorder feature, the amount of time it takes you to write the automated test.

Flexibility Via Hand-Crafted Commands

In some cases the rigidity of recorded actions is a drawback. If, for example, you want to search for the tag Home Appliances and then click into the product Test Toaster, but you aren’t sure where in the search results that item will be, a recorded action informed by precise HTML structure might fall short. In those cases, you can use a combination of CSS and XPATH selectors to find and interact with your elements regardless of where exactly in the DOM they exist.

Storing Variables with Javascript

Sometimes a human tester needs to remember something, like the name or unique ID of a piece of content, in order to proceed with their test. Let’s say, for example, you’re testing a Drupal site wherein you first want to create a new Person node, then associate it via an entity reference field with a Group node on that node’s creation form. Using Katalon Recorder’s storeEval command you can use Javascript to accomplish that by saving a variable.

Once you have saved the form for your Person node, you’ll get redirected to something like http://mysite.dev/node/887 where 887 is the node ID for your content. The storeEval command lets you save the ID number to a variable that we can access later in our tests. See the image below:

Katalon Recorder covers a lot of bases. Whether you're using just the Record option for building basic spot-checks, or combining advanced features to create rigorous and complex functional testing, it's surprising what can be achieved in so little time — especially given KR's very tenable learning curve. While the examples above are exceedingly simple, in some recent projects we’ve combined thousands of commands across dozens of test cases that provide thorough regression testing and automated QA — and it all started with the click of a Record button.

Categories: Drupal

Vertical Hover Menu

New Drupal Modules - 26 March 2019 - 8:50am

It may feel strange to have to click through the menu on the vertical layout and for those who want to have a hover effect on vertical, this is the module for you. This module can also be great for getting away from the defaults and having a more customized admin panel that doesn't feel so generic.

Categories: Drupal

Drupal nbox

New Drupal Modules - 26 March 2019 - 7:38am

The nbox module provides an full fledged internal mail/messaging system.

Core features

  • Inbox
  • Messages with cc, bcc and attachments
  • Threads
  • Folders
  • Starring
  • Forwarding to external mail
  • Reply from external mail (need transactional mail service like SendGrid or Mandrill)
Categories: Drupal

Commerce Barion Payment

New Drupal Modules - 26 March 2019 - 6:50am
Categories: Drupal

Podigee Podcast Player

New Drupal Modules - 26 March 2019 - 5:33am

A field formatter for audio files implementing the
Podigee podcast player

Categories: Drupal

Live Photos

New Drupal Modules - 26 March 2019 - 5:28am

The goal of this project is to create a module that will allow to use Apple’s Live Photos in Drupal. Users should be able to upload the separate image and video parts of the Live Photo, which will then be shown in Drupal similar to how Live Photos are shown on an iOS device.

Currently, this project is a work in progress.

Categories: Drupal

Web Wash: Getting Started with Bootstrap 4 using Radix in Drupal 8

Planet Drupal - 26 March 2019 - 3:30am

Radix is a Bootstrap 4 powered theme which is set up out-of-the-box to compile the Bootstrap library locally. It is targeted towards advance front-end developers who want total control on how Bootstrap is loaded and comes with Browsersync and Font Awesome built-in. The theme doesn’t support loading Bootstrap via a CDN out-of-the-box. I’d recommend you look at the Barrio theme if you prefer to load everything through a CDN.

Because you’re compiling Bootstrap, you get the added benefit of being able to modify the _variables.scss which is used to customize Bootstrap and can control what SASS components get imported. By importing only what you need you can drastically reduce the size of the compiled CSS file.

The theme comes with a Drush command (Drush 8 only), drush radix "Theme name", which makes it easy to generate sub-themes. The sub-theme comes with a package.json which has all the required packages.

Just run npm install, then npm run dev to compile Bootstrap. It uses laravel-mix to compile everything so you don’t have to spend time configuring webpack files.

In this tutorial, you’ll learn how to install Radix, create a sub-theme, how to compiling everything and learn about Radix Layouts.

Categories: Drupal

Crm Core Commerce

New Drupal Modules - 26 March 2019 - 2:53am

This module creates and updates crm_core individuals after the users has placed an order. (commerce_order.place.post_transition) Event is used.

If your individual has additional fields, you can extend the mapper service (crm_core_commerce.individual_mapper) and replace the protected functions createNewIndividual() and updateIndividual().

Categories: Drupal

Varbase API

New Drupal Modules - 26 March 2019 - 12:05am

A JSON:API implementation with authentication and authorization that allows for easy ingestion of content by other applications.

Categories: Drupal

CiviCRM Add to Calendar

New Drupal Modules - 25 March 2019 - 5:26pm

Upgrades CiviCRM event iCal buttons to a better looking dropdown that includes a link to Google Calendar.

Categories: Drupal


Subscribe to As If Productions aggregator - Drupal