Binding a single page to a View Template

If you need to bind the content of a single page to view, you may use the following code:

1
{page post_name="about-us" assign_to="about_page"}
{page post_name="about-us" assign_to="about_page"}

To access the data of the page that you just bound, you can refer to the object to which you assigned the data:

1
2
3
4
<div class="about">
    <h2>{$about_page.data.post_title}</h2>
    <p>{$about_page.data.post_content_filtered}</p>
</div>
<div class="about">
	<h2>{$about_page.data.post_title}</h2>
	<p>{$about_page.data.post_content_filtered}</p>
</div>