$modx->setPlaceholder("to_top",'go to top of page');
Hello,
I’m new in modx, so far everything’s good until I came along with the multilingual site.
I was wondering maybe you guys can help me out. I’m kinda lost on step where you need to put a
currentlanguage.php file in assets/languages directory. I’m aware of the international ISO though
I didn’t know what to put inside the php file
<?php
...???
?>
With that problem I was still able to see my main site with problems:
1. double display of LANGUAGE MENU
i.e. English English
Deutsch Deutsch
2. If I click the any of the language menu I get a 404 error
i.e. URL/gb was not found
URL/de was not found
3. If I click my about us page in main menu i get a 404 error also
i.e. URL /de/about-us.html was not found...and so with the other links
What seems to be my problem?
Thank you.
weaknsick it sounds like your server isn’t configured for friendly url’s. Just to confirm that the pages are working can you try going to yoursite.com/index.php?id=x (where x is the id of 1 of your pages).
Thanks for your reply aceman, im really not into the coding stuffs and was
in a bit of a mess when implementing the solution. So far my site structure looks like this:
ROOT
ENGLISH gb TV: gb
home gb TV: gb
aboutus gb TV: gb
content gb TV: gb
DEUTCSH de TV: de
home de TV: de
aboutus de TV: de
... and so on
Did I made it right at first? I have pages that has TV’s with the country codes alias?
The one that I mentioned with the doubled language menu looks like this:
gb english
de deutsch
I also get the 404 errors. When you hover your mouse to the language menu it’s pointing to
domainname.com/gb.html for english (results to an error)
domainname.com/de.html for deutcsh (results to an error)
weaknsick it sounds like your server isn’t configured for friendly url’s. Just to confirm that the pages are working can you try going to yoursite.com/index.php?id=x (where x is the id of 1 of your pages).
Hi FishCake,
Thank you for the reply, when i tried doing this "yoursite.com/index.php?id=1" it shown my website including some other page id’s.
Does this mean i have to speak with my webhost or was it inside the modx configuration?
Cheers!
It depends largely on your host, do you know what webserver is used? if it’s Apache it should be as simple as renaming the "ht.access" file found in the root folder to ".htaccess" if it is IIS then you will most likely need to contact your host.
It depends largely on your host, do you know what webserver is used? if it’s Apache it should be as simple as renaming the "ht.access" file found in the root folder to ".htaccess" if it is IIS then you will most likely need to contact your host.