-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.txt
62 lines (38 loc) · 2.18 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
redomino.keywordalias
=====================
This product aims to let keyword managers to add one or more keyword aliases and different versions depending on the user language.
It may help you managing multilingual websites.
It provides:
* a customized keywords viewlet
* a keyword alias configuration panel
* a couple of views that let you personalize your 'search' and 'search_form' views.
Note well: you have to customize your search and search_form manually! These two templates may depend on the Plone version you are using
Tested on Plone 4.1.5 and Plone 4.2.
How it works?
-------------
This product provides a customized keywords viewlet that shows keyword aliases instead of standard keywords depending on a configuration panel.
The keyword alias configuration panel let you assign keyword aliases for each keyword indexed in the plone's catalog and for each enabled language.
The keyword alias configuration panel stores a dictionary similar to the following one:
{
'wood': ['Wood',], # the fallback version for each language
'wood|en': ['Wood',],
'wood|it': ['Legno', 'Materiale legnoso'],
}
The registry accepts a list: will be used the first item as a keyword translation, otherwise the default one or the plain keyword itself. The other list values
could be used by third party packages as aliases or keyword synonims.
If you want you may customize the 'search' and 'search_form' views, see next section-
Customize the search and search_form views
------------------------------------------
How to customize the 'search' view:
<tal:replace replace="structure context/@@multiselectkeywords" />
How to customize the 'search_form' view (where result may be an object or a catalog brain):
<tal:replace replace="structure result/@@filedunder" />
Similar products
----------------
See http://pypi.python.org/pypi/archetypes.linguakeywordwidget written by JeanMichel FRANCOIS aka toutpt <[email protected]>.
This package achieve the same goal but in a different way. With keyword alias
your keywords are translated in backoffice. With linguakeywords you have
just different keywords.
Authors
-------
* Davide Moro <[email protected]>, idea and main author