- Koha uses templates to handle different themes and languages.
- There is a CVS-module for the design-files: koha-tmpl.
- It contains two directories for the opac- and the intranet-templates: opac-tmpl and intranet-tmpl.
- Each of this directories reflects the available themes and their languages.
- The default theme is "default" and the default language is "en" (we use the 2letter-abbreviations, en => english, fr => french, de => german and so on).
- If you for example want to write a template for the opac part of the "custommade"-theme in polish it has to go in koha-tmpl/opac-tmpl/custommade/pl/template.tmpl.
- The template-files will not reside in your webtree, if you want to use a image you have to put this in your webtree, which is organized the same way as the templatetree (koha-html/opac-html/custommade/pl/images/image.gif).
- If you have files (either templates or files in the webspace) which are the same for all themes or languages use the "all"-directory. For example the "background.jpg"-image, which is the same for all languages within a theme should go in koha-html/(intranet|opac)-html/custommade/all/images/background.jpg).
-
+
+ Koha uses templates to handle different themes and languages. In
+ the CVS module "koha", there is a subdirectory for the design files:
+ koha-tmpl. This subdirectory can be checked out from CVS as if it
+ were a CVS module "koha-tmpl".
+
+ It contains two directories for the OPAC and the intranet templates:
+ opac-tmpl and intranet-tmpl.
+
+ Each of this directories reflects the available themes and their
+ languages. The default theme is "default" and the default language is
+ "en" (we use the 2-letter abbreviations, en => English, fr => French,
+ de => German and so on).
+
+ If you, for example, want to write a template for the OPAC
+ part of the "custommade" theme in Polish, it has to go in
+ koha-tmpl/opac-tmpl/custommade/pl/template.tmpl.
+
+ The template files will not reside in your web tree. If
+ you want to use an image, you have to put this in your web
+ tree, which is organized the same way as the template tree
+ (koha-html/opac-html/custommade/pl/images/image.gif).
+
+ If you have files (either templates or files in the webspace)
+ which are the same for all themes or languages use the
+ "all" directory. For example the "background.jpg" image, which
+ is the same for all languages within a theme should go in
+ koha-html/(intranet|opac)-html/custommade/all/images/background.jpg).
+