From a5d69f2bf5b8083095a2c63576f33a1b407cdc79 Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Fri, 3 May 2013 15:04:30 +1200 Subject: [PATCH] Update page-type-templates.md --- docs/en/topics/page-type-templates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/topics/page-type-templates.md b/docs/en/topics/page-type-templates.md index fe1aaf3cc..dc86e2666 100644 --- a/docs/en/topics/page-type-templates.md +++ b/docs/en/topics/page-type-templates.md @@ -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`. @@ -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 \ No newline at end of file + * `[api:ViewableData]`: Underlying object class for pretty much anything displayable