logo

Palette - Make it Colorful🎨

Palette - Visual Page Builder, no design degree required.

Live Demo Download Palette

Scroll
08/03/2021, by Ivan

In Drupal we use hooks and services in custom modules from core and contrib modules, when we need to extend site functionality. We already used hooks in this article:

9.11.3. Entity hooks

Let's work with services now. Service is a special PHP object. When you create a new PHP class in your custom module, it will be better to define it as a service, so your code could be easily usable and overwritten in other modules.

05/11/2020, by Ivan

There are opinions that Drupal is complicated platform and it's hard to install and set up Drupal. But Drupal is under active development more than 20 years and for this time all approaches to install and set up Drupal are being constantly improved. Now you can install Drupal with Docker on virtual environment. Let's use Lando and install Drupal for 10 minutes.

27/10/2020, by Ivan

Views module is widely used in Drupal ecosystem. Lists of content, tables, blocks, slideshows, data export - these peaces of contents usually are displayed with Views. If you use Content types, Block types or another Entity types, then Views already integrated with them automatically and you can use Views to display your content. But for your custom module, where you use separate custom database table, which you created with hook_schema(), you should write integration with Views to display your module data in Views module UI.

16/10/2019, by mikhail
settings

Users - this is one of the main features of Drupal, we can create, delete users. Users on the site leave comments, reviews, materials. Drupal has user moderation systems. And this is only part of the functionality of Drupal, so we need to understand the admin panel of Drupal in order to manage all this.

Let's go to Account settings:

Drupal users

settings
10/10/2019, by mikhail
Views Relations

Relationships are a very important part of Drupal, so taxonomy terms and content, users and content, goods and the display of goods in commerce are combined. Thanks to this, we can display user fields when displaying material fields, and when displaying goods, we can display their price and article number.

Thanks to this, we can display user fields when displaying material fields, and when displaying goods, we can display their price and article number.

Views Relations