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/09/21 14:25] – Can't really install over a 2.1 install anymore dbs | dev:opac:template-toolkit [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Create Date: 2011-03-08 | * Create Date: 2011-03-08 | ||
- | * [[dev: | + | * <del>[[dev: |
+ | * [[dev: | ||
===== The Code ===== | ===== The Code ===== | ||
Line 32: | 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 46: | 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 66: | 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.1316629540.txt.gz · Last modified: 2022/02/10 13:34 (external edit)