How do I print individuals fields in block.html.twig when is a node in a block? How do I print individuals fields in block.html.twig when is a node in a block?

The template is working fine. I can hard code some random text and it is displayed. I just can't display the field values.

I have already tried

{{content.my_field.0}}
{{content.my_field[0]}}
{{node.my_field.0.value}}
{{ content.my_field }}


But, after clear the cache doesnt work
You have to set "node" in the twig-variables of your block. I.e. you can do this in a template_preprocess hook like so:

function mytheme_preprocess_myBlock(&amp;$variables) {
  $variables['node'] = Node:load(50);
}


Then you can access the "node" in your template like {{node.my_field.value}}.

The hard part is to find which node to load in the preprocess function :-)