Hello forum!
I make bilingual site with dynamic folders where I have two templates, for each language one, and 3 views within each template - home, folder and page view...
it goes like this
I have several folders containing pages.... I do not know how to change language when I am in folder view, so that I get the same folder in another language; or when I am in a page view, to get the same page but in another language...
In the moment, I can only call the home view as it should be....
Any suggestions?
Thanks in advance
Tanja
I make bilingual site with dynamic folders where I have two templates, for each language one, and 3 views within each template - home, folder and page view...
it goes like this
- Code: Select all
<html>
<cms:if k_is_page>
language menu & content
<cms:else />
<cms:if k_is_home>
<a href="<cms:show k_site_link />index_en.php" target="_self" class="<cms:if k_template_name=='index_en.php'>selected</cms:if>">en</a> |
<a href="<cms:show k_site_link />index.php" target="_self" class="<cms:if k_template_name=='index.php'>selected</cms:if>">de</a>
& content
<cms:else />
<cms:if k_is_folder >
language menu & content
</cms:if>
</cms:if>
</cms:if>
</html>
I have several folders containing pages.... I do not know how to change language when I am in folder view, so that I get the same folder in another language; or when I am in a page view, to get the same page but in another language...
In the moment, I can only call the home view as it should be....
Any suggestions?
Thanks in advance
Tanja