Im new to drupal 8. This is my first time building a site so please help. I have created a custom block type by going to structure/block layout/ types/ add custom block type - 'Feature Boxes'. This block type has 4 fields for the 4 dif images, and 4 fields for the 4 dif links. How can i use the data from each field in my page--front.html.twig file.
-
easiest way I can think of would be to place it in the template with the Twig Tweak module2pha– 2pha2018-06-12 23:35:10 +00:00Commented Jun 12, 2018 at 23:35
-
Always is the same as in node in Drupal 7, you can manage your block display, select fields formatters, create field groups and what you want.lamp5– lamp52018-06-14 08:20:23 +00:00Commented Jun 14, 2018 at 8:20
Add a comment
|
1 Answer
Use this module: Twig Tweak
Examples can be found here:
I'm not familiar with adding fields to blocks.