Articles

A custom validator for checking the field depending on the value of another field

In one project I use two independent date fields "Start Date" and "End Date". Both fields are optional. But if "End Date" is selected, I need to check "Start Date", so the first field shouldn't be empty and "End Date" should be greater or equal. This code shows how I implemented the solution.

 Example of gulp file

In this crib is a ready-made example of gulp file that you need to take and use. Suitable for any project and solves the most frequent and necessary tasks when developing a theme, work with SASS, Images, Icons.

18 Mar.2018
Example of grunt file

In this crib is a ready-made example of grunt file that you need to take and use. Suitable for any project and solves the most frequent and necessary tasks when developing a theme, work with SASS, Images, Icons.

Update Manager Advanced

The solution can be helpful, for example, in case, if you received the mail and see that only one module was updated and this module uses on admin interface only and nothing critical for the visitors and updating can wait. So you shouldn't spend time in opening the site for checking.

Site's administrators

Here is a very quick and simple example of how to create a user/administrator programmatically on any Drupal 8 website. This tweak is very useful when the client has provided a site for support but forgot or did not have the opportunity to create an admin account for you.