Babel: Menu not showing
-
- Forum Members
- Posts: 13
- Joined: Wed Jul 14, 2010 4:22 pm
Babel: Menu not showing
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.
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.
Re: Babel: Menu not showing
insert {babel action="assign"} in the first line of your template
-
- Forum Members
- Posts: 13
- Joined: Wed Jul 14, 2010 4:22 pm
Re: Babel: Menu not showing
Done that already, no effect.
Re: Babel: Menu not showing
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>
-
- Forum Members
- Posts: 13
- Joined: Wed Jul 14, 2010 4:22 pm
Re: Babel: Menu not showing
I tested yours, no effect.
-
- Forum Members
- Posts: 13
- Joined: Wed Jul 14, 2010 4:22 pm
Re: Babel: Menu not showing
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""
string(52) "Smarty error: unable to read resource: "template:-1""
-
- Forum Members
- Posts: 13
- Joined: Wed Jul 14, 2010 4:22 pm
Re: Babel: Menu not showing
Can anyone point me in the right direction? Please?
Re: Babel: Menu not showing
post your template
-
- Forum Members
- Posts: 13
- Joined: Wed Jul 14, 2010 4:22 pm
Re: Babel: Menu not showing
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.
Re: Babel: Menu not showing
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?
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.
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'}
I hope this helps, if not, please try to give more info about your problem.
Make your community a better place!
Re: Babel: Menu not showing
afaik this is not neccessary when using babel. i do not use this.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?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)Code: Select all
{content block='Other languages' oneline='true' assign=other_languages wysiwyg='false'}
I hope this helps, if not, please try to give more info about your problem.
simply post your page template.
Re: Babel: Menu not showing
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.
If the tree branch is really identical for both languages, it should be working.
Make your community a better place!
Re: Babel: Menu not showing
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
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
Re: Babel: Menu not showing
@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
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
Re: Babel: Menu not showing
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!