Displaying individual fields in a template I have a template for a specific content type. I want to output individual fields from that content type in a specific order, which requires me to change the content type template. It's too complicated to explain why I need to do this.

In the template I see {{ page.content }} for outputting all the fields together, which displays everything, but I want to take the field variables out of this, and separately display each of them.

So for example I tried the following, but it displays nothing to the page.

{{ page.content.field_field_name1 }}
{{ page.content.field_field_name2 }}


I also tried {{ content.field_field_name1 }}, {{ field_field_name1 }}, and {{ content.field_field_name1.entity }}, but none of them work.

Suggestions?
You can not print out content fields directly in the page template. content is available in the node template, not in the page template.

The correct way to print out parts of the node elswhere in the page template is to define a block that does that, for example with the ctools module and a specific view mode that just contains the fields you want.

Alternatively, you can load the node yourself in theme_preprocess_page() and then view/prepare them manually and put it in $variables. But using blocks and regions is the standard and recommended way to put something in the page template.