Ok, let's put some of what you've learned in the previous section into practice. It would be nice to separate out the preparation stage in our recipe from the cooking stage. We'll do this by splitting the two types of fields into separate wrapping div
tags, and then apply some styling to help us differentiate them:
We'll find out which template is currently in use by enabling Twig debugging. In PHPStorm, navigate to sites / default. If you have a file named
services.yml
, open it. If you don't, make a copy ofdefault.services.yml
, rename it toservices.yml
, and open it.Look for the section called
twig.config
. In this section, you will find an option that currently says debug: false. Change that value to true and save. Like aggregation for CSS and JS, this will improve your development conditions, but ensure it's turned off again before the site is in production.If in step 3 you encountered a permissions error, you will need to reset permissions in the sites...