0

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.

2
  • easiest way I can think of would be to place it in the template with the Twig Tweak module Commented 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. Commented Jun 14, 2018 at 8:20

1 Answer 1

0

Use this module: Twig Tweak

Examples can be found here:

I'm not familiar with adding fields to blocks.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.