WordPress 5.2 is out now and it brings several useful new features, both large and small.
One of the nice small improvements is the ability to disable unwanted blocks. By default, WordPress arrives with dozens of blocks and every time you install a plugin, there's a chance that the plugin will add many more.
If your site ends up with hundreds of blocks, your writing interface will be slow and confusing. Here's a preview of all the block areas, even in a default WordPress site:
The Field Permissions module in Drupal 8 allows you to set permissions (enter, edit or view) on a Drupal field, based on the role the user belongs to.
In order to demonstrate how this module works, we are going to create a content type called "Essay" for the website of a school.
There will be 2 roles:
The Freshmen permission will not be allowed to choose the subject of the essay, whereas the Sophomores will have the possibility to choose between literature and history. However, there will be no possibility to change the subject once a student has made a choice.
If you want to place flex-items in a particular sequence inside their flex-container, independently of how they are placed in the HTML code, you use the CSS Flexbox order property.
As you already learned in the first tutorial of this series, you can invert the order of the flex-items using row-reverse on the inline axis. This is useful when using right-to-left languages like Urdu or Hebrew.
It is also possible to invert the order of flex-items on the block axis using flex-direction: column-reverse.
The order property gives you much more flexibility because it allows you to visually change the order of each item and still keep the source order in the markup (HTML code). This is very useful for people, who use screen readers (accessibility is important).
If you use WordPress in a professional way, you've probably come across Zac Gordon.
In this week's episode, I'm delighted to welcome April Sides.
April is a Drupal developer who works for Lullabot, one of the biggest and most reputable Drupal agencies. She's worked on all sorts of fascinating projects, and at the moment she's helping Georgia.gov (the state of Georgia), move many of their Drupal sites over to Drupal 8.
We talk about what she's been doing in the Drupal world, about DrupalCon Seattle, which happened the previous week. Plus, we discuss what it's like to be part of such a massive government project, helping people out, and making government websites easier to use.
An OSTraining member asked us if it was possible to connect Webforms to their content.
I can imagine a lot of use-cases for this. For example, if you have an "Events" content type, you might want a form so visitors can contact the event organizer. Or if you have a "Business" content type, it might be useful for people to contact the business.
This can be done thanks to a module called "Webform Extra Field" and in this tutorial I'll show you how.