-
- 159 Posts
Have you tried to enable friendly URLs in the system setting of the manager?
Hi aaronkent! Indeed the friendly URLs are already switched on in the manager.
In fact I can see that the alias is being shown when accessing the website (instead of index.php?id=4 for example).
I don't think that Lingua Extra inherits this setting in this case.
-
- 159 Posts
You could setup an htaccess rule that converts the request to friendly in the address bar or try using the CustomRequest plugin. I use that plugin for a huge project and it works well. Just associate the entries to corespond as you describe.
-
- 17 Posts
Hi sjmclean,
I've used the Lingua extra on quite a few projects and it works great.
Like aaronkent, I use .htaccess, but with the addition of Ajax.
1. By using .htaccess to allow for 'example.com/{country_code}/', you can grab the {country_code} by exploding $_SERVER['REQUEST_URI'] and checking to see if the {country_code} matches the current MODx cultureKey.
2. If they don't match, you can just do an Ajax post to example.com?lang={country_code} and refresh your page.
Cheers
Jim