Skip to main content
Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with leymannx's answer chosen by CommunityBot
edited title
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

How do you output views reference field views from inside a blockin Twig?

added 72 characters in body
Source Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

I'm currently trying to output views referenced in a node (with Views Reference Field) inside page.html.twig Twig template.

I know I can just add or embed a view using {{ drupal_view('machine_name', 'block_1') }} (with Twig Tweak) in my Twig template. But I want the editors to have the flexibility to add or change views in the node and have them printed without writing code.

I can't seem to find any documentation on how to output a referenced view to my Twig template.

enter image description here

enter image description here

I'm currently trying to output views referenced in a node (with Views Reference Field) inside page.html.twig Twig template.

I know I can just add or embed a view using {{ drupal_view('machine_name', 'block_1') }} in my Twig template. But I want the editors to have the flexibility to add or change views in the node and have them printed without writing code.

I can't seem to find any documentation on how to output a referenced view to my Twig template.

enter image description here

enter image description here

I'm currently trying to output views referenced in a node (with Views Reference Field) inside page.html.twig Twig template.

I know I can just add or embed a view using {{ drupal_view('machine_name', 'block_1') }} (with Twig Tweak) in my Twig template. But I want the editors to have the flexibility to add or change views in the node and have them printed without writing code.

I can't seem to find any documentation on how to output a referenced view to my Twig template.

enter image description here

enter image description here

added 136 characters in body
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

Using views reference field, how How do you output the itemsviews reference field views from inside thea block?

added 136 characters in body
Source Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126
Loading
added 89 characters in body
Source Link
clestcruz
  • 249
  • 1
  • 8
  • 22
Loading
Notice added Authoritative reference needed by clestcruz
Bounty Started worth 50 reputation by clestcruz
Source Link
clestcruz
  • 249
  • 1
  • 8
  • 22
Loading