Skip to content

Commit

Permalink
Update page-type-templates.md
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwelsh committed May 3, 2013
1 parent a5dd243 commit a5d69f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/topics/page-type-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ To simply retrieve the parent page of the current context (if existing), use the
### Access to a specific Page

:::ss
<% loop $Page(my-page) %>...<% end_loop %>`
<% with $Page(my-page) %>...<% end_with %>`

"Page" will return a single page from the site tree, looking it up by URL. You can use it in the `<% loop %>` format.
Can't be called using `$Page(my-page).Title`.
Expand Down Expand Up @@ -282,4 +282,4 @@ we recommend that you dive into the API docs for the following classes:
* `[api:ContentController]`: The main controller responsible for handling pages
* `[api:Controller]`: Generic controller (not specific to pages)
* `[api:DataObject]`: Underlying model class for page objects
* `[api:ViewableData]`: Underlying object class for pretty much anything displayable
* `[api:ViewableData]`: Underlying object class for pretty much anything displayable

0 comments on commit a5d69f2

Please sign in to comment.