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.
For the first time, Zac's written a book, and he did it with OSTraining. React Explained is available now, and it teaches you how to use the React framework, which is increasingly popular in WordPress, but also Drupal, Magento, and other platforms. We talk with Zac about his background, his love of yoga, and also about why he decided to focus on React for his first book.
WordPress is a great platform and has surprisingly flexible permissions. However, by default, the permissions system keeps to the WordPress philosophy of "Decisions, not options". This means that there are 5 user roles by default: Administrator, Editor, Author, Contributor and Subscriber. But you're not able to edit these roles without installing a plugin.
In this guide, I'll introduce 5 of the best plugins for customizing the permissions on your WordPress site. These plugins will allow you to customize the 5 default roles, and also create your own rules and permissions.
As you already learned, the flex-grow property specifies how items grow (or expand) to fill the available space in the flex-container. The flex-shrink property specifies how items behave when there’s not enough space available for all of them to fit.
The default value for flex-shrink is 1. This means that all items shrink in an equal proportion.