dev:opac:template-toolkit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dev:opac:template-toolkit [2011/10/19 15:24] – [Template Toolkit OPAC] lebbeous | dev:opac:template-toolkit [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| * The eventual goal is to fully integrate the TT OPAC into the staff client. | * The eventual goal is to fully integrate the TT OPAC into the staff client. | ||
| - | * To use the Template Toolkit OPAC as the catalog in the staff client, | + | * To use the Template Toolkit OPAC as the catalog in the staff client, |
| - | echo " | + | |
| - | urls[' | + | |
| - | urls[' | + | |
| - | urls[' | + | |
| - | urls[' | + | |
| ==== Customizing ==== | ==== Customizing ==== | ||
| Line 47: | Line 42: | ||
| * Create a directory where you will store your template customizations, | * Create a directory where you will store your template customizations, | ||
| - | + | | |
| - | | + | # Templates will be loaded from the following paths in reverse order. |
| - | + | PerlAddVar OILSWebTemplatePath "/openils/var/templates" | |
| - | * Add a new ''< | + | PerlAddVar OILSWebTemplatePath "/openils/var/my_own_templates" |
| - | + | </code> | |
| - | < | + | * You can, for example, customize skins on the basis of the hostname being used via virtual hosts; note that the base template directory gets loaded first in eg_vhost.conf, |
| - | <template_paths> | + | <VirtualHost *:80> |
| - | < | + | |
| - | <path>/ | + | DocumentRoot |
| - | </template_paths> | + | DirectoryIndex index.xml index.html index.xhtml |
| + | Include eg_vhost.conf | ||
| + | <Location /eg> | ||
| + | PerlAddVar OILSWebTemplatePath "/ | ||
| + | | ||
| + | </VirtualHost> | ||
| </ | </ | ||
| - | |||
| * Place your version of all '' | * Place your version of all '' | ||
| Line 67: | Line 66: | ||
| === String Localization === | === String Localization === | ||
| - | * Create a .po file for your locale. | + | * Create a '' |
| - | sudo -u opensrf xgettext.pl --plugin=tt2 --directory=Open-ILS/ | + | sudo -u opensrf xgettext.pl --plugin=tt2 --directory=Open-ILS/ |
| - | * Add your .po file to /openils/conf/oils_web.xml< | + | * Add your .po file to the Apache '' |
| - | | + | |
| - | < | + | |
| - | < | + | PerlAddVar OILSWebLocale " |
| - | < | + | |
| - | </ | + | </ |
| * Edit strings in your new .po file. For example:< | * Edit strings in your new .po file. For example:< | ||
| ... | ... | ||
dev/opac/template-toolkit.1319052250.txt.gz · Last modified: 2022/02/10 13:34 (external edit)