Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi KK,
I use k_folder_desc to show my folder description, but I'm developing a dual language website with the<cms:get 'meta_desc_<cms:show my_lang />' /> method.
Is there a way to handle 2 languages section for k_folder_desc?
Other than hard programming it I mean...

Thanks,
Paolo
Hi Paolo,

Folders, unlike pages, have a fixed number of regions. So, I am afraid, no straightforward way of doing what you want.

As an aside, this limitation of 'folders' and 'comments' not having the same flexibility as 'pages' is bothering me too ('users', thankfully, no longer suffer from this limitation). Cannot promise, but I intend to do something about it in the coming versions.

Thanks.
Hi PaoloE,
For multilang websites you can also use css-hidden areas, it's not bad for SEO too (but using session-based multilang technique is bad for seo).
So, you can write something like that in your folder description:
Code: Select all
<div class="lang_en">English text</div>
<div class="lang_fr">French text</div>

And write in your template, for example,
Code: Select all
<style>
div[class^="lang_"] {display:none}
.lang_<cms:show my_lang /> {display:block}

/* or if it suits better
div[class$="<cms:show my_lang />"] {display:block}
*/
</style>


This way the text is not hardcoded and no need to modify template files for changing these texts.
3 posts Page 1 of 1