0
votes

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.

1
easiest way I can think of would be to place it in the template with the Twig Tweak module2pha
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

1 Answers

0
votes

Use this module: Twig Tweak

Examples can be found here:

I'm not familiar with adding fields to blocks.