I have a page--front.html.twig file. I can't figure out how to show a specific node title and body summary on the frontpage with only using twig. I know I can create a view of something like that and show it with: {{ drupal_view('viewmachinename', 'blockname') }}
, but in my opinion it's a little bit overkill for just showing the title and body of specific node.
Normally I show the current node title and body summary with {{ node.label }}
and {{node.body.summary}}
, but I don't know how to show the page title and body summary with an other nid.
I try to show the page title and body summary with nid 2
on the frontpage.
/node/2
in the Front page field.node 2
is not my front page. It has content which should be displayed at the frontpage.