Closed sreyfe closed 8 months ago
I am trying display all of the data from a single entry onto each page. I would like to be able to do this without having to specify the names of each field. The below does what I want, but it also displays the html from the layout file.
` {% for field in page %}
{{field}}: {{page.field}}
{% endfor %}`
Is there a better way to do this?
solved this by using the page_data_prefix setting
page_data_prefix
I am trying display all of the data from a single entry onto each page. I would like to be able to do this without having to specify the names of each field. The below does what I want, but it also displays the html from the layout file.
` {% for field in page %}
{{field}}: {{page.field}}
Is there a better way to do this?