Skip to main content
edited body
Source Link
logeshvaran
  • 570
  • 4
  • 16

You can call the node field in the view template

 Nodenode.field_(your-field).value 

This will print the html tags as well, If the node field has the html structure.

Nodenode.field_(your-field).value | raw (or) Nodenode.field_(your-field).value |render|striptags

This will clean the html structure and useful to print the node value inside the view.template

NOTE: using node. instead of content. , because content. will be used only the node.html.twig

You can call the node field in the view template

 Node.field_(your-field).value 

This will print the html tags as well, If the node field has the html structure.

Node.field_(your-field).value | raw (or) Node.field_(your-field).value |render|striptags

This will clean the html structure and useful to print the node value inside the view.template

NOTE: using node. instead of content. , because content. will be used only the node.html.twig

You can call the node field in the view template

 node.field_(your-field).value 

This will print the html tags as well, If the node field has the html structure.

node.field_(your-field).value | raw (or) node.field_(your-field).value |render|striptags

This will clean the html structure and useful to print the node value inside the view.template

NOTE: using node. instead of content. , because content. will be used only the node.html.twig

Source Link
logeshvaran
  • 570
  • 4
  • 16

You can call the node field in the view template

 Node.field_(your-field).value 

This will print the html tags as well, If the node field has the html structure.

Node.field_(your-field).value | raw (or) Node.field_(your-field).value |render|striptags

This will clean the html structure and useful to print the node value inside the view.template

NOTE: using node. instead of content. , because content. will be used only the node.html.twig