From df29ffbde72e88635f454d5d6d84c5a7209460f3 Mon Sep 17 00:00:00 2001 From: vdigital Date: Mon, 14 Jul 2008 21:42:40 +0000 Subject: Feature template-extension based on 2006 chrisaga's idea. chrisaga wrote: "If you want to make some template customization without building a brand new template, you should use ..." git-svn-id: http://piwigo.org/svn/trunk@2434 68402e56-0260-453c-a942-63ccdbb3a9ee --- language/en_UK/admin.lang.php | 8 +++ language/en_UK/help/extend_for_templates.html | 98 +++++++++++++++++++++++++++ language/fr_FR/admin.lang.php | 10 ++- language/fr_FR/help/extend_for_templates.html | 98 +++++++++++++++++++++++++++ 4 files changed, 213 insertions(+), 1 deletion(-) create mode 100644 language/en_UK/help/extend_for_templates.html create mode 100644 language/fr_FR/help/extend_for_templates.html (limited to 'language') diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 6f73d4b8d..129623864 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -649,4 +649,12 @@ $lang['Deleted on'] = 'Deleted on'; $lang['Last hit'] = 'Last hit'; $lang['Hits'] = 'Hits'; $lang['GD library is missing'] = 'GD library is missing'; +$lang['conf_extents'] = 'Templates'; +$lang['extend_for_templates'] = 'Extend for templates'; +$lang['Replacement of original templates'] = + 'Replacement of original templates by customized templates from template-extension subfolder'; +$lang['Replacers'] = 'Replacers (customized templates)'; +$lang['Original templates'] = 'Original templates'; +$lang['Optional URL keyword'] = 'Optional URL keyword'; +$lang['Templates recorded.'] = 'Templates configuration has been recorded.'; ?> diff --git a/language/en_UK/help/extend_for_templates.html b/language/en_UK/help/extend_for_templates.html new file mode 100644 index 000000000..8e2c7ac6b --- /dev/null +++ b/language/en_UK/help/extend_for_templates.html @@ -0,0 +1,98 @@ +

Extend for templates configuration

+ +

Goal

+

Define replacement conditions for each template from template-extension +(template called "replacer").

+ +

"original template" from ./template/yoga (or any other than yoga) + will be replaced by a "replacer" if the replacer is linked to this "original template" + (and optionally, when the requested URL contains an "optional URL keyword").

+ +

"Optional URL keywords" are those you can find after the module name in URLs.

+ +

Therefore "Optional URL keywords" can be an active "permalink" +(see permalinks in our documentation for further explanation).

+ +

Read: `Warning` usage conditions.

+ +

What are template extensions?

+ +

This configuration tool is powerfull for beginners and advanced users. +By FTP, in the template-extension folder, the Webmaster can duplicate a lot of + the distributed .tpl files ("original template") with a different name + ("replacer"). + + "Original templates", current original supported templates are:

+ + +

Where can I find "original templates"?

+ +

Distributed original templates are in template/yoga/ +(don't edit them in place for upgrade perspectives). So with "original templates", +any webmaster can create his "replacers (customized templates)".

+ +

Where should I save "replacers"?

+ +

Replacers (customized templates) must be placed in the +template-extension folder (or its subfolders). +Replacers can have any filename with the .tpl extension. For example: template-extension/my-extension/video.tpl.

+ + +

How can I activate my "replacers"?

+

An original template should be assigned to each + replacer (customized templates) to activate the related replacements. + This is the goal of "Extend for templates" in the Configuration Administration menu.

+ +

If you select an optional URL keyword then replacements +will be operate only on pages with this keyword. For example: index.php?/most_visited

+ +

Advanced users will use permalinks as optional URL + keyword.

+

How can I deactivate my "replacers"?

+ + +

Warnings

+ \ No newline at end of file diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index b1051c7a5..60981ae2e 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -649,4 +649,12 @@ $lang['Deleted on'] = 'Effacé le'; $lang['Last hit'] = 'Dernier accès'; $lang['Hits'] = 'Utilisations'; $lang['GD library is missing'] = 'la bibliothèque GD est manquante'; -?> +$lang['conf_extents'] = 'Templates (modèles)'; +$lang['extend_for_templates'] = 'Etendre les templates'; +$lang['Replacement of original templates'] = + 'Remplacement des templates d\'origine par vos templates adaptés du dossier template-extension'; +$lang['Replacers'] = 'Remplaçants (templates modifiés)'; +$lang['Original templates'] = 'Templates d\'origine'; +$lang['Optional URL keyword'] = 'Paramètre facultatif de l\'URL'; +$lang['Templates recorded.'] = 'La configuration des templates a été enregistrée.'; +?> \ No newline at end of file diff --git a/language/fr_FR/help/extend_for_templates.html b/language/fr_FR/help/extend_for_templates.html new file mode 100644 index 000000000..8e2c7ac6b --- /dev/null +++ b/language/fr_FR/help/extend_for_templates.html @@ -0,0 +1,98 @@ +

Extend for templates configuration

+ +

Goal

+

Define replacement conditions for each template from template-extension +(template called "replacer").

+ +

"original template" from ./template/yoga (or any other than yoga) + will be replaced by a "replacer" if the replacer is linked to this "original template" + (and optionally, when the requested URL contains an "optional URL keyword").

+ +

"Optional URL keywords" are those you can find after the module name in URLs.

+ +

Therefore "Optional URL keywords" can be an active "permalink" +(see permalinks in our documentation for further explanation).

+ +

Read: `Warning` usage conditions.

+ +

What are template extensions?

+ +

This configuration tool is powerfull for beginners and advanced users. +By FTP, in the template-extension folder, the Webmaster can duplicate a lot of + the distributed .tpl files ("original template") with a different name + ("replacer"). + + "Original templates", current original supported templates are:

+ + +

Where can I find "original templates"?

+ +

Distributed original templates are in template/yoga/ +(don't edit them in place for upgrade perspectives). So with "original templates", +any webmaster can create his "replacers (customized templates)".

+ +

Where should I save "replacers"?

+ +

Replacers (customized templates) must be placed in the +template-extension folder (or its subfolders). +Replacers can have any filename with the .tpl extension. For example: template-extension/my-extension/video.tpl.

+ + +

How can I activate my "replacers"?

+

An original template should be assigned to each + replacer (customized templates) to activate the related replacements. + This is the goal of "Extend for templates" in the Configuration Administration menu.

+ +

If you select an optional URL keyword then replacements +will be operate only on pages with this keyword. For example: index.php?/most_visited

+ +

Advanced users will use permalinks as optional URL + keyword.

+

How can I deactivate my "replacers"?

+ + +

Warnings

+ \ No newline at end of file -- cgit v1.2.3