Yes.. that’s the best way at the moment. In the templates, you can use [+maxigallery.config.lang+] with phx do decide what language to show.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Wait..!

I just made the
test version for maxigallery v0.6 available.. It has new &customFields parameter what you could use..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Oooh... that’s great! Thank you!
Hi,
I’ve managed to add the custom fields, added their entry boxes to the manager, and they seem to save successfully. However, I have come across a problem...
My site is in two languages (English and Polish), and I essentially have two copies of the document structure, one for each language (With TVs for page language, and for the ID of the corresponding document in the other language). For each gallery (i.e. a set of photos), I was hoping to have have two documents, but have the photos "based" in one (say English), and use the option &gal_query_ids in the other (Polish) document. I also would like just the "normal" display of the galleries.
However, implementing this, the links to the individual photos in the Polish galleries take the browser to the photo in the original English document. This means the viewer now has an English page, with English menus etc.
Is there a way to show the photos of a gallery of another document, but keep the user on the same document when they click on it?
Michal.
-
☆ A M B ☆
- 24,524 Posts
While I’m not an expert on exactly how MaxiGallery is coded, the gallery is dependent on the page it is "attached" to, so I wouldn’t think this is possible. How about having your gallery in a separate folder (unpublished), and using a cookie to hold the user’s language choice (actually just the ID of the language’s parent document) so you know which language to use and which section of the menu to show. I do this sort of thing on most of my multi-language sites.
Quote from: michalc at Apr 09, 2008, 06:53 PM
Hi,
I’ve managed to add the custom fields, added their entry boxes to the manager, and they seem to save successfully. However, I have come across a problem...
My site is in two languages (English and Polish), and I essentially have two copies of the document structure, one for each language (With TVs for page language, and for the ID of the corresponding document in the other language). For each gallery (i.e. a set of photos), I was hoping to have have two documents, but have the photos "based" in one (say English), and use the option &gal_query_ids in the other (Polish) document. I also would like just the "normal" display of the galleries.
However, implementing this, the links to the individual photos in the Polish galleries take the browser to the photo in the original English document. This means the viewer now has an English page, with English menus etc.
Is there a way to show the photos of a gallery of another document, but keep the user on the same document when they click on it?
Michal.
You need to do a custom template(s) for the gallery that uses &gal_query_ids parameter and change the links that goes away from the page to stay in there.. eg. use [~[*id*]~] to build the links and add maxigallery parameters to that.. ?pic=[+maxigallery.picture.id+]&gal=[+maxigallery.picture.gal_id+] etc.. Ask again if you have troubles with some specific link..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
-
☆ A M B ☆
- 24,524 Posts
Now that is nice to know!