Book Image

Drupal 8 Quick Start Guide

By : J. Ayen Green
Book Image

Drupal 8 Quick Start Guide

By: J. Ayen Green

Overview of this book

Drupal is a powerful content management platform, ?exible enough to accommodate almost any content requirements. This ?exibility comes with a cost: complexity. Drupal 8 Quick Start Guide will clear your path from installation to a building usable site in minutes, and to a customized site in one sitting. You will begin with installation of Drupal and going through the main sections of the Drupal UI. Then, you will create a content type that describes its content, which simplifies the act of creating and editing the actual content later. You will learn about user roles, using real-world examples. This will help you to learn how to design roles, and how to assign appropriate permissions to them. Next, you will learn to use the WYSIWYG editor, configure it for other roles, navigate the various fields on the content creation form, and publish content. To begin to appreciate the ?exibility and expandability of Drupal, you will make use of popular content-focused modules that extend Drupal's power. You will learn how to expand your market to other readers directly and through other sites by configuring content and UI translations and creating a View that provides an RSS feed. Finally, you will put everything together by customizing the home page for your new website.
Table of Contents (16 chapters)

Modifying content for feed selection

So, we know what criteria we have for our feeds, but how will Drupal know which content meets that criteria? Let's discuss two possible methods.

Pick-me flags

A pick-me flag is a content field that's purpose is to highlight the fact that the content applies to something specific, and so is the flag for selecting it. It is represented by a Boolean field, which contains True (-1) or False (0), so that you can think of it as either on or off. It is typically represented by a checkbox. 

So, for our use, we could add a field called Pets to our article content type, and check the box when creating an article if the article touches on pets, and the same with a Travel checkbox for travel content.

This makes sense, and is an easy way to determine what content to select, but there is one kink in that plan. Every time a new criterion arises, it would mean adding yet another field to the content type. Things could get messy quickly.


A pick-me flag works best for a standalone...