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
I**L
Very Difficult Book To Follow Due to Drupal Changes, But Well Worth It
When I first started going through the exercises in this book I was just about ready to hurl the book across the room (yes the digital version). But.... I really need to learn this content so I stuck with it. After MANY errors - I realized I need to start with the same version of Drupal the author was using when writing the book and to use my MAMP setup using the same PHP version. Without doing this the Start and End database snapshots may make your site unusable and you won't be able to start or do your lessons. Trust me.... The problem isn't the fault of the author because he used what was currently available when he wrote the book. The problem is that Drupal changes often - even more than often (daily when you include modules, vendors, etc.). My strong recommendation - stick with this book if you want to learn the content. It's the best book out there (even in 2021) on Theming Drupal 8. You'll need to learn Twig if you're using D8. Very well written and sequentially written lessons that really get you using the process and learning it well. I have the digital copy of the book, but will also purchase the hard-copy so I can easily sit with it between doing the lessons in printed form. Highly recommend this book, but be aware you'll need to do as I've suggested above to make it work.
J**S
Great Overview, Example Files Useless
Its no surprise the 5 star reviews are from 2016, but in Dec 2020, this is at best a 2-3 star book. It does a very good job of explaining how the theming system works and I found it a great intro for the basics of yml and twig. Problem is with the examples. Starting from scratch most of the early ones will work, just do not try to use any of the example code. They are just too old. Spent hours trying to figure out PHP errors after adding the Bootstrap library per instructions. Finally exactly copied what was working on a recently constructed site with latest versions or everything, and it worked. No problems at all. Same with fontawesome. The examples just do not work with Drupal 8.9.10.His view of database restores for different chapters was pretty naive. Not one of them worked. You cannot restore a database from an earlier Drupal version and expect it to work. He should have clearly stated what Drupal version he was using so that could have been installed.I did learn a lot from reading the book and playing around with the early simple examples. Examining an existing site built on a professional theme was also very helpful, as was spending some time reading the documentation for Twig, YAML and the Drupal Theme documentation.From chapter 6 on, reading through it was a helpful, but actually trying to follow along with the exercise a waste of time as very little worked. Things have changed too much in the past 5 years.
S**R
I feel like I have a solid handle on how theming in ...
After going through this book, I feel like I have a solid handle on how theming in Drupal 8 is done and how to do it on my own.
E**I
If MAMP doesn't install well, use Acquia Dev as ...
If MAMP doesn't install well, use Acquia Dev as desktop server and start learning. You'll get more than you bargained for.
T**Y
Five Stars
A very thorough description of theming with twig in Drupal 8.
J**S
Great Start for Drupal 8 theming concepts for intermediate Drupal Users
As of this morning, I have completed the book and Worked through the entire thing and all the exercises.Preface: Drupal 8 is still really new. A lot of things have and will continue to change and some of the examples in the book will need updating, or a little digging by the reader to get things working right. In my opinion this book is best for people who are already comfortable with older versions of Drupal, have done some theming with PHPTemplate (.tpl.php files) and are ready to jump into changing over to TWIG theming within Drupal 8. Since I purchased the book the author has been very helpful and has updated the files that go along with the book. I've had success and learned a lot but it has taken some work. D8 is a moving target to write tutorials for. You will need to be comfortable running a virtual server environment. I would definitely call this an intermediate book. its NOT at a beginner level.I learned a LOT reading through this and doing the exercises and it was a valuable experience. The exercise had me going all over Drupal 8's updated interface, working with many files, and I feel much more 'at home' working in Drupal 8 in general, not just theming, than before I read it.Database Imports: As of the release new set of files to go with the book, Database imports were working great for me. The old set did not. I would not let this deter you. I got through the first 7-8 chapters without importing the database. Creating a small amount of content myself that 'mimicked' what was in the book was all it took. a small hurdle.The book introduced me to all kinds of great libraries I could import to extend Drupal's theme functionality. Before, I was trying to do everything with a module. Turn's out it is very easy to add functionality to Drupal 8 with libraries that don't have a module to support them.Overall, this was a somewhat challenging experience, which is why i rated 4 stars instead of 5. But it was very worthwhile and I came away knowing a lot more. Some of the struggles I had with the early stuff ended up making me feel more confident as my troubleshooting skills improved.This book fills a really needed niche for those who don't have a mentor to sit down with them and show them how to theme Drupal 8 in person. I highly recommend giving it a try.
S**R
Drug 8 Theming with Twig Needs Some Help
I also found that this book needs to be re-edited very badly. I found at least 5 or 6 typos and some of the instructions are too vague and don't drill down enough and left me with lots of questions. I also imported the database files and got database errors that I could find NO HELP with at all either in the book or on the web. I am having to re-install Drupal 8 and start completely over because of database errors. This has led me to get a bit frustrated and to have to rely on other solutions to get more training. I need to know this for my job.
A**R
Great book - once you learn to trust it
I nearly gave up in disgust somewhere in chapter 7, but I'm glad I didn't. It seemed to me that everything I tried, failed. Worse, there was no way that I, with my state of knowledge, could work out where the problem lay. But, by using a virtual machine, taking checkpoints every couple of pages, and being VERY CAREFUL, I eventually realised that the problems I'd been experiencing were caused by my fat fingers, and I was able to resolve all of the errors as my experience grew, if necessary looking at the downloaded before and after images of the theme and database that come with each chapter.This book is excellent. After some introductory chapters it talks you through theming a sophisticated, modern, site, from mockup to fully working end result. There's a lot of ground to cover, but it's never rushed; it never assumes you have a certain level of expertise; and you are always guided in detail, with explanations and screenshots.The tiny number of errata at the publisher's site shows how carefully this book has been put together and tested. Mr. Chumley is clearly an expert web developer, and I'm glad I was able to learn so much from him
A**E
Not able to get the example code loaded into drupal. So I can not work with the book, which may be quite good :(
I am having issues to import any sql database file for the book to follow the examples. And this is very important because the whole book is based on these examples.First I want to acknowledge that I can Backup and then re Import my own database file, as outlined in chapter Using the project files.But then I try to load the database.sql for chapter 3 (also tried it for chapter 4 and 5) I get errors and drupal no longer works. I am following the instruction of the book in Chapter 3 Dissecting a Theme, sub chapter Creating our first basic theme.So I first drop all tables and then import into my database the file from the download Drupal8ThemingwithTwig\Chapter03\start\d8.sql. This is imported with no error or warnings. Also copied the folder twig into my sites template folder.But then tried to refresh my URL, in order get into the drupal site to clear caches under performance/ClearCaches, I get this error: The website encountered an unexpected error. Please try again later. Also tried using drush with the command cc to clear the caches, which give me the errors.
C**H
Enabled me to learn pretty much everything I needed to know about Drupal and Twig
Very comprehensive tutorial and the only of its kind I could find. Well explained with a good quality practical case study to follow.
B**E
this book for me didn't satisfy. There's a lot of practical theming questions that ...
While i appreciate the effort, this book for me didn't satisfy. There's a lot of practical theming questions that weren't touched upon in the book. Good as an introduction, but definitely not more.
R**D
L'intégration de la base se plante d'où le suivi des exercices devient difficile
Tester la création d'un thème