[TYPO3] Dynamicaly sorting HMENU.special = directory entries, multilingual
Georg Skillas
gskillas at gmx.de
Sun Oct 22 10:41:25 CEST 2006
Hello everybody,
being new to TYPO3 and after scanning several of the mailing list archives
I am posting the question I could not resolve.
I am building a Multilanguage site and have defined a menu in typoscript
as follows (please use a fixed font for better readability):
MENU = HMENU
MENU {
special = directory
special.value = 4
1 = TMENU
1.NO = 1
1.NO.linkWrap = |
}
The structure of the menu is
+-Menubar (uid 4)
+-Aquaria
+-Diving
+-Sailing
Every page of Aquaria, Diving and Sailing has translations pages in
english (standard), german, greek. The pages have been arranged in
alphabetical order of the title, this works nicely with one language.
Is there a method to dynamicaly arrange the pages based on the page title
in the respective language?
For completenes, language selection hapens over the much used
config.linkVars = L
config.sys_language_uid = 0
config.language = en
...
LANGUAGE = COA
LANGUAGE {
10 = TEXT
10 {
field = uid
wrap = <p><a href="index.php?id=|&L=1">Greek</a></p>
}
20 = TEXT
20 {
field = uid
wrap = <p><a href="index.php?id=|&L=2">German</a></p>
}
30 = TEXT
30 {
field = uid
wrap = <p><a href="index.php?id=|&L=0">English</a></p>
}
}
...
[globalVar = GP:L=1]
# Greek is needed
config.sys_language_uid = 1
config.language = gr
[global]
[globalVar = GP:L=2]
# German is needed
config.sys_language_uid = 2
config.language = de
[global]
[globalVar = GP:L=0]
# English is needed
config.sys_language_uid = 0
config.language = en
[global]
Best regards,
George
----- - - - - - - - - - -
Georg Skillas Tel.: 06181 969670
Am Lerchesberg 10 FAX.: 06181 5975223
D-63456 Hanau gskillas-at-gmx-dot-de
Germany
More information about the TYPO3-english
mailing list