Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 8 Theming with Twig

You're reading from   Drupal 8 Theming with Twig Master Drupal 8's new Twig templating engine to create fun and fast websites with simple steps to help you move from concept to completion

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher Packt
ISBN-13 9781782168737
Length 376 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Chaz Chumley Chaz Chumley
Author Profile Icon Chaz Chumley
Chaz Chumley
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Setting Up Our Development Environment 2. Theme Administration FREE CHAPTER 3. Dissecting a Theme 4. Getting Started – Creating Themes 5. Prepping Our Project 6. Theming Our Homepage 7. Theming Our Interior Page 8. Theming Our Blog Listing Page 9. Theming Our Blog Detail Page 10. Theming Our Contact Page 11. Theming Our Search Results 12. Tips, Tricks, and Where to Go from Here Index

Implementing our Headline Region


The third item we will need to address is replacing the static content in our Headline region. Referring back to the mockup, we have a responsive slider, parallax content, and a jump to the menu icon. Tackling the next section will introduce some new steps:

  1. First, we will address the Headline slider, which will require us to build a view to aggregate Headline content using a block display.

  2. Next, we will assign the new block to our Headline region and refactor the markup.

  3. Finally, we will add a JS library for FlexSlider to enable the responsive slider.

Creating our Headline View and Block

Drupal 8 has taken the popular Views module and integrated it into the core module system. We can take advantage of Views to aggregate the content that our Headline slider needs.

To get started, we will need to navigate to /admin/structure/views and click on the Add new view button from the Views Admin screen, where we will add the following information:

  • VIEW BASIC INFORMATION...

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 €18.99/month. Cancel anytime