I'm trying to setup a bilingual site and I'm having some issues with setting up the URI.
'siteUrl' => array(
'en' => 'http://localhost/mysite',
'fr' => 'http://localhost/mysite/fr',
),
'environmentVariables' => array(
'baseUrl' => 'http://localhost/mysite/',
)
In my single settings: URI for french: {baseUrl}fr/nouvelles URI for english: {baseUrl}news
Not sure how to set this up to have it setup the way I want it. Removing the baseURL part just doesn't print the mysite subfolder.
Thanks!
EDIT: Here's the real problematic after investigation.
The URI should not include anything more than the name so: In my single settings: URI for french: nouvelles (http://localhost/mysite/fr/nouvelles) URI for english: news (http://localhost/mysite/news)
Now, those 2 pages work like expected.
But, if I assign those pages to a Entries field, to create my menu, when I pull the url, it never inclues the /fr portion. Even the default template doesn't render the correct link, dropping the /fr part in the url too:
{% for entry in craft.entries.section('news').limit(5).find() %}
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %}