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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
MaximUs
New Member
New Member
Posts: 5
Joined: Tue Dec 21, 2010 3:00 pm

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

Post 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"...
Brandt
Forum Members
Forum Members
Posts: 55
Joined: Fri Mar 05, 2010 10:04 am

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

Post 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.
Last edited by Brandt on Wed Dec 22, 2010 9:52 am, edited 1 time in total.
Post Reply

Return to “CMSMS Core”