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
Mastering Drupal 8 Views

You're reading from   Mastering Drupal 8 Views Build sophisticated displays of your Drupal content, all without programming

Arrow left icon
Product type Paperback
Published in May 2016
Publisher
ISBN-13 9781785886966
Length 272 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gregg Marshall Gregg Marshall
Author Profile Icon Gregg Marshall
Gregg Marshall
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Up and Running with Views FREE CHAPTER 2. Views from Scratch 3. Sorting and Filtering 4. Contextual Filters 5. Relationships 6. Add-on Modules 7. Field Rewrites 8. Customizing Views 9. Advanced View Settings 10. Theming Views A. Content Types for a Sample Site Index

Changing how fields are output

Refreshed from getting up, getting more coffee, and having a quick rundown of Lynn's son's soccer game earlier in the week, Jim and Lynn sat down at his computer again.

"Before we get to my favorite option, let's do the rest of the field rewrite options as they are really straightforward," Jim started off saying. He continued, while pointing to his screen:

  • Trim this field to a maximum number of characters is another one of those select-the-option-and-more-options-appear checkboxes. When you select this option, you are given options not very different from when you set up a body field in a new content type. The first suboption is Maximum number of characters, a simple number-input field. You can limit a field to, say, 10 characters if you are using it for a button or something longer if you want a teaser-like introduction. Another option for trimming a field is Trim only on a word boundary, which limits the trimming to a word boundary...
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