Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Articles

29/08/2019, by mikhail
jQuery OwlCarousel

In the last article, we made a slideshow using Views Slideshow. But we still have an unstylized paginator with small pictures.

In this article, we will look at how to add OwlCarousel and add CSS using an additional library.

In this article, we use a custom module to connect OwlCarousel, but next time we will stylize the slideshow in the files of the theme.

https://drupalbook.org/sites/default/files/inline-images/drupalbook_owlcarousel.zip

jQuery OwlCarousel
28/08/2019, by mikhail
core

Drupal uses the new Twig template engine. Therefore, all topics were redone for him. Let's go in and see what lies in the /core/themes folder

drupal 8 theme

We have a Twig template; builder themes classy, stable, stark; ready-made themes bartik, seven.

Template Twig

Drupal incorporates part of the Symfony libraries:

core
28/08/2019, by mikhail
theme

The theming in Drupal 8 has been changed. This is primarily due to the transition to object-oriented programming and the use of the twig template engine. If earlier it was enough to learn a little PHP, HTML, CSS and start creating your own theme, now you need to figure out twig as well. On the one hand, this complicates the development of Drupal, but on the other hand simplifies the development process.

theme
28/08/2019, by mikhail
Drupal SEO

If you decide to create your site or even you have already created a site. But what if your site is not visited? You are not the first to create a site, and most likely not the first to create a site specifically for your subject: tourism, cars, real estate. And most likely there are already dozens, if not hundreds, of sites similar to yours. Each of your business competitors already has a website. Well, if you already have an audience, there are sites that are doomed to be forgotten and lost.

Drupal SEO
26/08/2019, by mikhail
 Data

The Views module allows not only to output data from the Drupal tables, but it also knows how to calculate this row and group the results. This feature is called aggregation.

By default, Drupal has a Dictionary of Taxonomy Tags. Let's create a block with the most popular tags and display at the end of each tag how many materials on the site with this tag. We get something like this list:

Drupal 9 (5)

Drupal 8 (3)

PHP (2)

To get started, you will need to create Articles and bind tags to them.

/node/add/article

 Data
26/08/2019, by mikhail
settings

In this article we will look at the last block of the Views Others preferences.

Views others settings

Machine name. The display ID is set as page_1, block_1 by default, and then 1 is added to the display name (page_2, page_3, etc.). It is advisable to rename the machine name if you have many displays in one view.

settings
26/08/2019, by mikhail
carousels

In 7th Drupal, there were many modules for integrating different jQuery slideshows with Drupal. Probably the most popular and convenient was Views Slideshow. There was one drawback in the 7th version of the Views Slideshow module, it was not responsive. Now in the 8th version this has been fixed, so let's make the slideshow exactly on the Views Slideshow.

First you need to download and install the Views Slideshow module itself, you will also need to enable the Views Slideshow Cycle submodule:

carousels