Drupal 8

Permissions

How to create a custom permission on Drupal 8 - 9

Tan Nguyen

|

You can define custom permissions on the permissions page, and check that permissions in your code to do different things based on the role of the user and the permissions.

old wagon with signs in it

Overview Batch API in Drupal 8

Tan Nguyen

|

1. Why do we need Batch API
2. How Drupal's Batch API works ?
3. Use cases.

Cartoon space rocket flying in the stars

Creating a custom Drush command in Drupal 8 (Drush 9+)

Tan Nguyen

|

In Drupal 8.4.X and later releases, Drush 9+ is the recommended version.
You can check more detail in https://www.drush.org/latest/install/#drupal-compatibility

old wagon with signs in it

Display blocks in Drupal 8

Tan Nguyen

|

Render a block to anywhere you want.

Thumbnail
Thumbnail

How Drush 9 can use environment variables

Si Hobbs

|

Working with Drupal sites in Lagoon, Platform.sh and Pantheon, your Drush aliases will follow repeating patterns. Drush 9 supports environment variables that can be exploited for flexible Drush aliases.

Thumbnail
Thumbnail

Limit allowed text formats

Campbell Tilley

|

Allowed formats is a module that allows site builders to limit the text formats available for editors on a per field basis.

Thumbnail
Thumbnail

Node Edit Protection

Campbell Tilley

|

Node Edit Protection is a great module to protect your content editors from losing their content, while creating a node.

Thumbnail
Thumbnail

Creating a checkout pane in Drupal 8 Commerce

Campbell Tilley

|

In this article we will look at what's involved in creating a custom checkout pane. The example checkout pane will enable a customer comments section in the Order Information step.

Thumbnail
Thumbnail

Custom views filter for an existing daterange field

Si Hobbs

|

This article shows how to create a select field filter for an existing views field. This works great for date fields where you want the user to select "Past events" or "Current events" from an exposed filter.

Thumbnail
Thumbnail

Configuring a Drupal 8 Multilingual site

Campbell Tilley

|

An easy step-by-step guide to configure multilingual content in a Drupal 8 site.

Thumbnail
Thumbnail

Export config from remote, no drush

Si Hobbs

|

In some situations you may find yourself lacking drush access to export config from a remote environment. The article presents a script alternative.

Thumbnail
Thumbnail

The bloated theme anti-pattern of GovCMS

Si Hobbs

|

GovCMS SaaS has encouraged php hacks in the theme since the Acquia platform - nothing has really changed. It's time to really challenge the notion that theme-only GovCMS sites are a sustainable practice.