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>
Create, customize, and publish mobile web applications using the Appcropolis Mobile Builder.
Get StartedWe offer 1,000's of mobile templates that are fully designed, coded, and ready to use. Learn more.
Download Free Templates
Not registered? Create an Account.
Lost your password? Click here to recover.