Babel: Menu not showing

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
ninjapiraatti
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 14, 2010 4:22 pm

Babel: Menu not showing

Post by ninjapiraatti »

Hi!

I'm having a bit of a trouble with Babel. I know it's working because I can make different text appear depending on language but the language menu won't display at all. In the source I can see that Babel starts the but for some reason won't list the languages. I'm using the hierarchy method and the structure is identical for all languages.
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Babel: Menu not showing

Post by nicmare »

insert {babel action="assign"} in the first line of your template
ninjapiraatti
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 14, 2010 4:22 pm

Re: Babel: Menu not showing

Post by ninjapiraatti »

Done that already, no effect.
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Babel: Menu not showing

Post by nicmare »

how looks your menu template? this is mine:

Code: Select all

<ul id="language_menu">
{foreach from=$languages item="language"}
   {if $language->is_current}<li class="active {$language->menu_name}">{$language->menu_name}</li>{else}<li class="{$language->menu_name}"><a href="{$language->url}" class="{$language->menu_name}">{$language->menu_name}</a></li>{/if}
{/foreach}
</ul>
ninjapiraatti
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 14, 2010 4:22 pm

Re: Babel: Menu not showing

Post by ninjapiraatti »

I tested yours, no effect.
ninjapiraatti
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 14, 2010 4:22 pm

Re: Babel: Menu not showing

Post by ninjapiraatti »

Got the menu showing but it doesn't quite work. When I try to access other languages I get the following:

string(52) "Smarty error: unable to read resource: "template:-1""
ninjapiraatti
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 14, 2010 4:22 pm

Re: Babel: Menu not showing

Post by ninjapiraatti »

Can anyone point me in the right direction? Please?
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Babel: Menu not showing

Post by nicmare »

post your template
ninjapiraatti
Forum Members
Forum Members
Posts: 13
Joined: Wed Jul 14, 2010 4:22 pm

Re: Babel: Menu not showing

Post by ninjapiraatti »

Layout template or babel menu template? Babel menu template is currently exactly the same as posted above. I've only tried that and the default.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Babel: Menu not showing

Post by M@rtijn »

There's not a whole lot of info in this topic, but maybe this causes your problem.

You say your hierarchy is the same, but did also specify the url for the page in the other language?

Do you have this in your (main CMS) template?

Code: Select all

{content block='Other languages' oneline='true' assign=other_languages wysiwyg='false'}
When you edit a page, do you see a box where you can enter the alias for the page in another language? (use this notifiaction: 'en_GB=home_en' on one page, 'fr_FR=home_fr' on the other)

I hope this helps, if not, please try to give more info about your problem.
Make your community a better place!
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Babel: Menu not showing

Post by nicmare »

mr202020 wrote: There's not a whole lot of info in this topic, but maybe this causes your problem.

You say your hierarchy is the same, but did also specify the url for the page in the other language?

Do you have this in your (main CMS) template?

Code: Select all

{content block='Other languages' oneline='true' assign=other_languages wysiwyg='false'}
When you edit a page, do you see a box where you can enter the alias for the page in another language? (use this notifiaction: 'en_GB=home_en' on one page, 'fr_FR=home_fr' on the other)

I hope this helps, if not, please try to give more info about your problem.
afaik this is not neccessary when using babel. i do not use this.
simply post your page template.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Babel: Menu not showing

Post by M@rtijn »

Whoops, almost forgot there are two types of language redirection methods in babel.

If the tree branch is really identical for both languages, it should be working.
Make your community a better place!
solodok
New Member
New Member
Posts: 9
Joined: Tue Dec 14, 2010 2:17 pm

Re: Babel: Menu not showing

Post by solodok »

Good evening,
Just upgraded to newest CMSMS version (1.9.2), and now only links to home pages in both languages are working (in settings turned on to show active lang. link and link to second language), like i have no pages at all, or structure in both languages is completely different.. before worked fine with basic settings without assigning. Its showing correct language en_US and ru_RU, but links always redirecting to home pages, have anybody faced such problems with babel? Thanks
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: Babel: Menu not showing

Post by klenkes »

@soloduk:
Yep. I can confirm this.
Seems to me that Babel doesn't work anymore in CMSMS 1.9.2.

Language switcher links point to sectionheader of languages(if hierarchy method is used).

A workaround could be:
Set Sectionheader to "Internal Page Link" pointing to the according homepage for the language.

I will file a bug report.

Bernd
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Babel: Menu not showing

Post by M@rtijn »

Well, on my main website and my sandbox Babel is working fine with 1.9.2. So, not all Babel installs have this issue.
Make your community a better place!
Post Reply

Return to “Modules/Add-Ons”