How do you move field content into another twig template?

by Jason Glisson   Last Updated November 14, 2017 19:07 PM

This is specifically for Drupal 8. I know how to do this in D7.

I'm developing a custom theme. I know how to create and change individual Twig field templates, but I'm not able to find much info on consolidating field data from individual twig templates into one template.

Specifically, I'm trying to move the field_tag data from field--node--field-tags.html.twig into the same area as he breadcrumbs.

I have two Twig templates; one for tags and one for breadcrumbs. The tags need to appear on the same line and in the same block area as the breadcrumbs.

Any ideas on how to do this? I can't get the Tags data to render. I thought it would be as easy as using {{ content.field_tags }} to make it render, but that doesn't do anything.

Tags : theming 8

Related Questions

Features can export everything?

Updated March 26, 2015 10:02 AM

No image style found

Updated March 29, 2015 15:02 PM

Best way to have 5 or 6 themes in one site drupal 7

Updated April 09, 2015 22:03 PM