Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 8 Quick Start Guide

You're reading from   Drupal 8 Quick Start Guide Get up and running with Drupal 8

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789340310
Length 128 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
J. Ayen Green J. Ayen Green
Author Profile Icon J. Ayen Green
J. Ayen Green
Arrow right icon
View More author details
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image