Hi,
I have followed the howto that Rolf made for a multilingual site and it is functional.
Exept for the menu-styling.
If you use "left simple navigation - 1 column" you need the first level for the choice of the language.
The menu starts like:
menu template="simple_navigation.tpl" start_element='2.1' show_root_siblings="1" number_of_levels='3'
Instead of an expanding menu it just stands out (not collapsing and expanding) and I cannot find how to make the active menu use a different background.
The site is http://www.control-engineering.at
Does anyone have a hint or an idea on how to start?
Kind regards,
Jan
Styling the menu when starting at level 2
Re: Styling the menu when starting at level 2
Janvl, look at your sourcecode, there are only two levels.
First level is independant of your language setting, the menu is built as usual so first level starts from element 2.1, this would be "Willkommen".
I didn't look at your stylesheet now, but there is one <ul> to much at start of the MenuManager template or did you place that in Page Template.
First level is independant of your language setting, the menu is built as usual so first level starts from element 2.1, this would be "Willkommen".
I didn't look at your stylesheet now, but there is one <ul> to much at start of the MenuManager template or did you place that in Page Template.
Re: Styling the menu when starting at level 2
Hi uniqu3,
thanks for the reaction.
I did not place it there. I always used the standard template so it seems there is some problem there.
I put the template in the database over the menumanager and it looks like there is indeed a ul to much. This is version 1.9.2.
I will look into that first, tommorow . . .
Kind regards,
Jan
thanks for the reaction.
I did not place it there. I always used the standard template so it seems there is some problem there.
I put the template in the database over the menumanager and it looks like there is indeed a ul to much. This is version 1.9.2.
I will look into that first, tommorow . . .
Kind regards,
Jan
Re: Styling the menu when starting at level 2
Hi uniqu3
I have checked it, but removed the template, for I use the standard, so
now I have:
menu start_element='2.1' show_root_siblings="1" number_of_levels='3'
Again there is two <ul> at the beginning, walking through the code it becomes clear that the problem is a <li> missing between the two <ul>
so it seems there is a problem in the code of the template.
I used something similar with a horizontal menu and there I do not see this problem.
Do you know whom to notify?
Kind regards,
Jan
I have checked it, but removed the template, for I use the standard, so
now I have:
menu start_element='2.1' show_root_siblings="1" number_of_levels='3'
Again there is two <ul> at the beginning, walking through the code it becomes clear that the problem is a <li> missing between the two <ul>
so it seems there is a problem in the code of the template.
I used something similar with a horizontal menu and there I do not see this problem.
Do you know whom to notify?
Kind regards,
Jan
Re: Styling the menu when starting at level 2
Upgrade to 1.9.4 as the menus have been reworked after some problems were found...
Re: Styling the menu when starting at level 2
Thank you Dr.CSS
I will do so immidiately and notify if the problem is solved.
Done.
The problem remains, although I use all standard modules I get <ul><ul> which is not like it should be.
Kind regards,
Jan
I will do so immidiately and notify if the problem is solved.
Done.
The problem remains, although I use all standard modules I get <ul><ul> which is not like it should be.
Kind regards,
Jan
Re: Styling the menu when starting at level 2
Hi,
I had a look in the menumanager, took the template for the left simple vertical menu, like in the site. (the standard {menu}).
If I remove "<ul>" just after {if $count > 0}
and I remove "</li></ul>" just before the last {/if}
Then it is almost ok, except at the beginning of the menu I have a <li> too much, just after the starting <ul>.
you can check the html-source of the english version of the site and compare it to the german html-source.
Regards,
Jan
I had a look in the menumanager, took the template for the left simple vertical menu, like in the site. (the standard {menu}).
If I remove "<ul>" just after {if $count > 0}
and I remove "</li></ul>" just before the last {/if}
Then it is almost ok, except at the beginning of the menu I have a <li> too much, just after the starting <ul>.
you can check the html-source of the english version of the site and compare it to the german html-source.
Regards,
Jan
Re: Styling the menu when starting at level 2
Have you tried the childrenof= parameter?...
Re: Styling the menu when starting at level 2
Hi
not yet Dr. CSS. This is the site of a customer and it looks good right now.
I will build a test-site to experiment and check the html produced.
This weekend I will have a closer look into it.
Kind regards,
Jan
not yet Dr. CSS. This is the site of a customer and it looks good right now.
I will build a test-site to experiment and check the html produced.
This weekend I will have a closer look into it.
Kind regards,
Jan
Re: Styling the menu when starting at level 2
So,
I made a testsite, www.stajl.biz/cms-demo a clean 1.9.4 install.
Using Rolfs Howto gives a fatal PHP error, in my opinion due to an endless loop. So I changed it.
Using the standard simple menu template still gives 2 x <ul>
So I wrote it to the database and changed
{if $count > 0}
<ul>
to
{if $count > 0}
<ul><li>
then the HTML-Tags are correct, but no highlight:
<ul><li>
<ul>
<li>menu choice 1</li>
<li>menu choice 2</li>
<li>menu choice 3</li>
</ul>
</li></ul>
What this will do on the CSS I will have to look at.
Regards,
Jan
I made a testsite, www.stajl.biz/cms-demo a clean 1.9.4 install.
Using Rolfs Howto gives a fatal PHP error, in my opinion due to an endless loop. So I changed it.
Using the standard simple menu template still gives 2 x <ul>
So I wrote it to the database and changed
{if $count > 0}
<ul>
to
{if $count > 0}
<ul><li>
then the HTML-Tags are correct, but no highlight:
<ul><li>
<ul>
<li>menu choice 1</li>
<li>menu choice 2</li>
<li>menu choice 3</li>
</ul>
</li></ul>
What this will do on the CSS I will have to look at.
Regards,
Jan