WebSite X5Help Center

 
Francois R.
Francois R.
User

Bug in the language choice object  en

Autor: Francois R.
Besucht 1350, Followers 1, Geteilt 0  

I have found a bug in the Language Choice object.

If you check https://www.nouvellegalerie.fr

In the header, there is a choice to display a localised version, which I created using the Language Choice object.

Normally, users can choose between FR (default) / EN / ES. Then the website would go to /en or /es.

In the English website, the choice should be EN / ES / FR, and ES / EN / FR when in the Spanish section.

In Preview mode, the selection works, all 3 flags are shown.

Once uploaded to the server, only 2 flags appear, the first two. This is the case with Edge, Firefox and Opera.

I have made sure that, when editing the header in Template mode, the object has been selected as 'Bring to front' to make sure it displays correctly over the rest of the page (several times to make sure).

The enclosed graphic shows the difference between Preview mode (3 flags) and page in Edge/Firefox/Opera (2 flags).

It seems that there is a bug somewhere.

Gepostet am
7 ANTWORTEN - 1 KORREKT
Francois R.
Francois R.
User
Autor

The bug could be that the Object is not uploaded to server as 'brought to front', which would explain why it does not display beyond the header, whilst looking fine in Preview mode.

Mehr lesen
Gepostet am von Francois R.
Paul M.
Paul M.
Moderator

Hello Francois,

The source code actually looks correct...  the link is there, the image is there.

I think you might need to enlarge the container which holds the Language Choice Object, in Step 2 Template Content.

Kind regards,

Paul

Search the WebSite X5 Help Center

Mehr lesen
Gepostet am von Paul M.
Francois R.
Francois R.
User
Autor

Your solution is correct. Thanks Paul.

Mehr lesen
Gepostet am von Francois R.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... x base site, FR, icons >> [EN] > [ES]
... x EN site, icons >> [FR] > [ES]
... x ES site, icons >> [FR] > [EN]

... currently icons :
... x FR  >> [FR]! > [EN] > [ES]
... x EN  >> [EN]! > [ES] > [FR]
... x ES  >> [SP]! > [EN] > [FR]

.

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪
Francois R.
Francois R.
User
Autor

Yes! KolAsim, you are right! Thanks for pointing this out.

Mehr lesen
Gepostet am von Francois R.
Francois R.
Francois R.
User
Autor

KolAsim,

Whilst in theory you are right, the popup language flag selection object does not work unless language number 1 is selected as the current language.

In other words, on the French site, I cannot simply use

Lang 1 EN

Lang 2 ES

with the path pointing to the English or Spanish site. If I do this and no 'current language' is selected, the popup does not display. It seems that the flag showing the current language has to be present.

No big deal.

Mehr lesen
Gepostet am von Francois R.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... hello, ... OK, it will be as you say, unfortunately I cannot try... ciao

Mehr lesen
Gepostet am von  ‪ KolAsim ‪ ‪