I'm trying to understand the templating system of Drupal 8, allready did some basic stuff. My next step is trying to create a template to mark up a list generated by a view.
Here's what I've done so far:
I created:
- A Content Type, with 3 fields: Title, Body, Link
- Some (5) content entries with this Content Type
- A View (Block) that lists all of the entries of this Content Type.
In Block layout I placed the View-block in a custom Region (werk_items) (configured in the my-theme.info.yml file.)
Than I created a page template (page--node--23.html.twig) that includes this region, like so
{{ page.werk_items }}
When I go to the corresponding URL all works well and all of the content is displayed.
Now my question is: How to extract the variables to create a custom markup for the view content?