I've created some paragraph types and added them to the "basic page" content type. I've filled in some data, but nothing shows up on the front-end. Only the content of ckeditor does. Any idea why this is?
1 Answer
Okay, it can be a few things...
If that twig template is the node, you would not use {{ page.content }}
, but rather just {{ content }}
. {{ content }}
is the entire render array for the node.
If you wanted to split the fields up within the node twig template, you can use the format {{ content.field_foo }}
.
It is already set to render the paragraph entity - so this should be all that is needed.
Another thing to check, if {{ page.content }}
is totally blank, ensure that the Main page content block is set to output in the Main Content region of your theme.
-
Somehow it started working after a few hours. I'll mark your answer as accepted and delete the question afterwards. Thanks for your time!– PimFeb 10, 2017 at 13:33