Page 1 of 1

BABEL multilanguage: how to show all the items in navigation?

Posted: Wed Dec 22, 2010 7:53 am
by MaximUs
HELP needed!

I am using Babel multi-language tool, and I would like to have all my languages showing in navigation. Like: ENGLISH | RUSSIAN (by default babel shows only inactive items of menu, so in this case it will be only one item). One link has to be active (underlined) and another one inactive (displays language you are using at the moment).

I tried to create new template, but failed. I do not know how call "the second language"...

Re: BABEL multilanguage: how to show all the items in navigation?

Posted: Wed Dec 22, 2010 9:48 am
by Brandt
Hello, I think it should be on default.

This is the tag: {babel action="menu"}

If you go to your babel module in the admin page you have three tabbuttons, if I am correct:
'Languages', 'Menu Templates' and 'Settings'

At 'Languages' add all your languages.

At 'Menu Templates' I made my own template to show images of flags instead of text.
This is the code:



{foreach from=$languages item="language"}
  {if $language->is_current}url}href="{$language->url}" {/if}class="active">{else}url}">{/if}name}.png" class="img" height="11" width="16" title="{$language->name}" alt="{$language->name}"/>
{/foreach}



In 'Settings' the "In the language menu, show link for current page (that is, current language) too.." should be on.

I hope you can do something with this information.