Version

Documentation » Page

7. Command Line Tools »

« 5. Error Pages

6. Twig Helpers

6.1. Url

Render a page url

{{ sonata_page_url(page) }} => /index.php/url/to/url

{{ sonata_page_url(page, true) }} => http://sonata-project.org/index.php/url/to/url

6.2. Container

Render a container using the current page

{{ sonata_page_render_container('name') }}

Render a container using a transversal page named blog

{{ sonata_page_render_container('name', '_blog') }}

Render a container using a page instance

{{ sonata_page_render_container('name', page) }}

Found a typo? Something is wrong in this documentation? Just fork and edit it!