I’m working at a multilanguage site with this structure
root
de
german doc
en
english docs
To change the menues or the contact forms I’m using PHx and UlimateParent. That’s not too hard.
Now the client wants a guestbook. I build this with Jot. Of course I need only one guestbook for both languages that shows up on the german menue as well as on the english. The links should be /en/guestbook or /de/guestbook and I would like to change the guest books forms and so on accordingly. So I would need the IDs of the language folders.
A similiar problem I´ve got with MaxIGallery.
I have not the faintest idea how I could achieve this. Is there anyone with an idea?
-
☆ A M B ☆
- 24,524 Posts
Use weblinks with added &lang=en or &lang=de, then in your actual guestbook page have a snippet to get that from the GET and specify which chunk templates to use. Probably best to use $modx->runSnippet with a different argument array for each language.