From a9d9dae8241069c599247d8b8989f5e0d84de09d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 19 Mar 2013 11:33:03 +0100 Subject: [PATCH] Fixed <% control %> usage in docs --- docs/en/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/index.md b/docs/en/index.md index 85ec02d..5c8fd03 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -363,14 +363,14 @@ below can be inserted in any of your templates, for example `themes/blackcandy/t :::php <% if Translations %> <% end_if %> @@ -380,7 +380,7 @@ just work if your locale value is registered in i18n::get_common_locales(). ### Page-control -If you want to put static links in your template, which link to a site by their url, normally you can use the `<% control +If you want to put static links in your template, which link to a site by their url, normally you can use the `<% loop Page(page-url) %>`. For sites which use Translatable, this is not possible for more than one language, because the url's of different pages differ. @@ -401,15 +401,15 @@ For this case place the following function in your Page_Controller: So, for example if you have a german page "Kontakt", which should be translated to english as "Contact", you may use: - <% control PageByLang(Kontakt,de_DE) %> + <% loop PageByLang(Kontakt,de_DE) %> The control displays the link in the right language, depending on the current locale. Example: - <% control PageByLang(Kontakt,de_DE) %> + <% loop PageByLang(Kontakt,de_DE) %>

$Title

- <% end_control %> + <% end_loop %> ### Enabling the _t() function in templates