Quote from: sottwell at Oct 30, 2005, 07:22 AM
I know that there are some quirks and bugs, but for the most part it works. The plugin (pass the lang variable via the URL query string) is very problematic at the moment; I recommend the cookie method until I can get it worked out.
Hi Susan,
I’ try to address all that i have done according to your specifications in the multilanguage.pdf and the codes from your posts regarding the multilingual support... The list is as follows.
1. I created the tree menu identical to the one in the pdf file posted by you.
2. I created the the [[SetLangCookie]] :
// SetLangCookie snippet for ModX
// set cookie with language ID
// 08-28-2005
//
[email protected]
$lang=$modx->documentIdentifier;
setcookie("Language",$lang,time()+604800, "/", "", 0);
3. I called this snippet at the beggining of each language home page/folder for example: *F indicates the folder just for info in this post.
---English F (Called the snippet in this folder)
-----Fields F
-----News F
-----Support F
---German F (Called the snippet in this folder)
-----Fields F
-----Fields F
-----Support F
4. I created the [*lang*] TV exactly as shown in the pdf document
@EVAL
if($modx->documentObject[’parent’] == 0) {
$lang=$modx->documentIdentifier;
}
else
if(isset($_COOKIE[’Language’])) {$lang=$_COOKIE[’Language’];}
else {$lang=$modx->config[’site_start’];}
return $lang;
5. I created the {{HomeMenuItem}} Chunk and,
6. Homealone Snippet
7. I created the CSSDropMenu
and this is finaly the problem i run into not probably but certainly beacouse i am a beginner
i am using the default modx template called the Minimal Template and i’m lost in where to call these snippets etc.
It’s not the template that i had in mind ( I saw the
http://www.bmptrans.ch/ template showing the languages on top menu and menu on left) that is what i need . for ex.
---------------------------------------------------------------
(FolderMenu)
Fields-------News-------Support (Language Menu)
-------------------------------------------English-------German
---------------------------------------------------------------
(Docs Menu) |
DocsUnder Fields |
|
|
|
________________________________________________________________________
Please can you send me an example or the construct of the template which you used to call all these snippets. I know i might be asking allot and probably wasting ur time on these things, but i would really appreciate ur help. Thnx in advance.
Please help.
WhiteHat