Page 1 of 2

Call Fotorama gallery in multilanguage site?

Posted: Sun Oct 21, 2018 8:50 am
by Nicky
Standard to call = {{{PLUGIN:fotorama('1');}}} where '1' is the gallery name.

Same code in the French version gives 'Datei konnte nicht gefunden werden'.

Thx

Re: Call Fotorama gallery in multilanguage site?

Posted: Sun Oct 21, 2018 9:08 am
by cmb
Which version of Fotorama do you use?

Re: Call Fotorama gallery in multilanguage site?

Posted: Sun Oct 21, 2018 9:58 am
by lck
In every language you have to rebuild the gallery, i.e. under Plugins > Fotorama > Galleries. Then an XML file is created in./content/fr/yourgalleriename.xml (Example for French).

But have a look at the extended plugin of Fotorama, which is more comfortable to use. Downloadcode can be found her.

Re: Call Fotorama gallery in multilanguage site?

Posted: Sun Oct 21, 2018 10:14 am
by Nicky
I'm using version 1.7. The solution to rebuild the galleries per language is perfect, since photos in the gallery don't often change, so this is just a small effort. Thanks.

Re: Call Fotorama gallery in multilanguage site?

Posted: Sun Oct 21, 2018 11:00 am
by lck
Nicky wrote:
Sun Oct 21, 2018 10:14 am
I'm using version 1.7.
That's the extended version from Ingo. The Plugincall should be:

Code: Select all

{{{fotorama("yourgalleriename");}}}
Nicky wrote:
Sun Oct 21, 2018 10:14 am
The solution to rebuild the galleries per language is perfect, since photos in the gallery don't often change, so this is just a small effort.
Faster, you can simple copy folder ./content/fotorama to ./content/fr :)

Re: Call Fotorama gallery in multilanguage site?

Posted: Mon Oct 22, 2018 9:09 am
by Nicky
Thanks all, works great, nice plugin!

A remark, something I noticed. When testing in Internet Explorer 11, when you go to a page (or refresh page) where fotorama is situated, a full width image is displayed, outside website width (just in a 'flash', very quickly restores to the textarea width on the website).

Other browsers don't seem to have this 'problem'.

No disaster, but maybe just small adjustment needed to solve this minor issue.

Re: Call Fotorama gallery in multilanguage site?

Posted: Mon Oct 22, 2018 10:34 am
by lck
Nicky wrote:
Mon Oct 22, 2018 9:09 am
When testing in Internet Explorer 11, when you go to a page (or refresh page) where fotorama is situated, a full width image is displayed, outside website width (just in a 'flash', very quickly restores to the textarea width on the website).
I can not reproduce that, in IE11 it looks normal :?

Re: Call Fotorama gallery in multilanguage site?

Posted: Mon Oct 22, 2018 12:46 pm
by cmb
lck wrote:
Mon Oct 22, 2018 10:34 am
Nicky wrote:
Mon Oct 22, 2018 9:09 am
When testing in Internet Explorer 11, when you go to a page (or refresh page) where fotorama is situated, a full width image is displayed, outside website width (just in a 'flash', very quickly restores to the textarea width on the website).
I can not reproduce that, in IE11 it looks normal :?
There are likely issues with the Fotorama library which are not related to the CMSimple_XH plugin, and it seems that Fotorama is unmaintained for quite some time now.

Re: Call Fotorama gallery in multilanguage site?

Posted: Mon Oct 22, 2018 1:30 pm
by Nicky
Only a small issue, I will use the plugin anyway. It's only IE that gives this minor error.
Once the page is opened, the gallery acts 'normal'. It's almost invisible, just a flash not even a second.. ;)

Re: Call Fotorama gallery in multilanguage site?

Posted: Mon Oct 22, 2018 4:13 pm
by lck
cmb wrote:
Mon Oct 22, 2018 12:46 pm
There are likely issues with the Fotorama library which are not related to the CMSimple_XH plugin, ...
Yes, and here might be the solution to Nicky's problem, see here too.
The first link is even linked to a video that shows exactly this problem.