Articles

In this article, we will analyze the settings for Image Styles, File system and image toolkit.
If you looked at my past articles, then you are probably already familiar with the Image Styles and visited the Media settings. But if you have not had time, then we will do it now. Let's go to the Configuration - Media - Image Styles page:


Drupal sites are usually made in order to put on the Internet. And when you post a site, it becomes available to the whole world, including spammers and crawlers looking for the opportunity to post spam and their code on your site. Drupal has checks and text filters to find and neutralize code from your data entry forms (you can read more about XSS attacks).
Let's go to Configuration - content authoring - Text formats and editors:
/admin/config/content/formats


Perhaps you have pages on the site where you go most often, maybe reports, orders, content and comments. This is very useful for a client who will visit the site only on certain pages. To do this, you can use shortcuts with quick links to important pages:
/admin/config/user-interface/shortcut


Like any other CMS, Drupal has a front page and to set it up, let's go to the Configuration — Basic site settings:
Here we will put our home page, by default it is /node, a list of recent nodes. But first you need to create some kind of node, let's create the About Us page and place it on the front page. Content - Add Content - Basic Page:
/node/add/page


Drupal admin panel provides extensive site management features. In the following articles, we will cover each item on the Configuration page:
/admin/config
If you worked with Drupal 6, Drupal 7, then this admin panel is already familiar to you, because most of the things have passed to the 8th version. And for those to whom Drupal is a new CMS, we will begin to consider everything in order.


Drupal, like many other CMS, allows you to combine links to pages in the menu. You can add new menus and links to them when creating new pages.
After installing the standard version of Drupal, we have 5 menus.
Main navigation - this is the previous menu from Drupal 7 main-menu (primary links). By default, there is a link to the home page.


Forums are not as popular as before, although they remain popular for torrent trackers and joint purchase sites, technical support. Here is such a simple but ready-made forum can be done on Drupal in 5 minutes
In order to add a forum, you need to enable the forum module:


Often on the site you need to display the image in a popup window, for this in the Drupal there is a very popular Colorbox module:
https://www.drupal.org/project/colorbox
composer require drupal/colorbox drush en colorbox
After installation we need to go to the module folder, find the README.txt file and find a link to the colorbox library
/web/modules/contrib/colorbox


Views module is one of the most popular modules. It allows you to display any data you want News, Articles, Comments, Taxonomy terms in the form of blocks, pages, RSS feeds, CSV files, XML files, and in many other formats. And finally, in Drupal 8 Views in the core! Now it does not need to be installed, Views is in the standard installation.
Let's include on Views and start displaying the data.
Create the content type News.


Drupal is able to work, not only with text pages, but also with images. To do this, you need to enable the Image module. The image module allows you to attach photos to the nodes and display these photos in the size we need. And in different places, these sizes may vary. So for example in the teaser of the node we can take a small photo, and in the full node it is already a big one.
In the past lessons we created the content type Employee. Let's open up the control of the content type fields Employee and add an image field.
