Summary

Let's give ourselves a big pat on the back. We learned a lot of new techniques for theming Drupal 8 in this chapter and our Blog listing page looks great. Quite a few different techniques were covered in a short period of time. We adopted best practices for theming different sections of our page, which will be used in almost any theme we create. Let's take a moment to recap what we have accomplished in this chapter:

  • We began by reviewing our Blog Listing mockup to identify the key areas of our website that we will need to recreate.
  • We learned how to effectively use Display modes to manage our content types fields, including how to hide labels and use field formatters.
  • Field level Twig templates came in handy for modifying individual field markup, adding classes, using filters, and checking for multiple field items.
  • Twitter Bootstrap gave us the flexibility to add slideshows and tabbed interfaces to our page content.
  • We took a deeper look at using preprocessing and creating a *.theme file to create new variables accessible by our Twig templates.

In the next chapter, we will continue with our Post content by theming our Blog detail page, which will include focusing on the Comment field in more detail, additional preprocessing functions, and additional Twig templates.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.223.10