From a3ec5f4af2e46256ac7efebb3a11e7084783080b Mon Sep 17 00:00:00 2001 From: matthiasgrimm Date: Thu, 19 May 2005 19:40:25 +0200 Subject: add a back button to parent page This patch extends the template functions with back button linking to the current pages' parent if available. Both tpl_button() and tpl_actionlink() are supported. For this to work the first page in the namespace must have the same name as the namespace itself. The 'back' button of every page in this namespace links to namespace:namespace. The 'back' button of the page namespace:namespace links to the first page of the containing namespace and so forth until the start page has been reached. Because of the precondition decribed above, the default template hasn't got the new 'back' button. It is reserved for custom made templates and installations which take care of the precondition. darcs-hash:20050519174025-7ef76-1e9c78c941f53871905fc1ba08b28a826553daa3.gz --- lang/de/lang.php | 1 + lang/en/lang.php | 1 + 2 files changed, 2 insertions(+) (limited to 'lang') diff --git a/lang/de/lang.php b/lang/de/lang.php index 145be6bcc..c4f65d814 100644 --- a/lang/de/lang.php +++ b/lang/de/lang.php @@ -31,6 +31,7 @@ $lang['btn_logout'] = 'Abmelden'; $lang['btn_admin'] = 'Admin'; $lang['btn_update'] = 'Updaten'; $lang['btn_delete'] = 'Löschen'; +$lang['btn_back'] = 'Zurück'; $lang['loggedinas'] = 'Angemeldet als'; $lang['user'] = 'Benutzername'; diff --git a/lang/en/lang.php b/lang/en/lang.php index d639276d9..49773b594 100644 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -30,6 +30,7 @@ $lang['btn_logout'] = 'Logout'; $lang['btn_admin'] = 'Admin'; $lang['btn_update'] = 'Update'; $lang['btn_delete'] = 'Delete'; +$lang['btn_back'] = 'Back'; $lang['loggedinas'] = 'Logged in as'; $lang['user'] = 'Username'; -- cgit v1.2.3