Styling the menu when starting at level 2

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
janvl
Power Poster
Power Poster
Posts: 972
Joined: Wed Aug 13, 2008 10:57 am

Styling the menu when starting at level 2

Post by janvl »

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
uniqu3

Re: Styling the menu when starting at level 2

Post by uniqu3 »

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.
janvl
Power Poster
Power Poster
Posts: 972
Joined: Wed Aug 13, 2008 10:57 am

Re: Styling the menu when starting at level 2

Post by janvl »

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
janvl
Power Poster
Power Poster
Posts: 972
Joined: Wed Aug 13, 2008 10:57 am

Re: Styling the menu when starting at level 2

Post by janvl »

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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Styling the menu when starting at level 2

Post by Dr.CSS »

Upgrade to 1.9.4 as the menus have been reworked after some problems were found...
janvl
Power Poster
Power Poster
Posts: 972
Joined: Wed Aug 13, 2008 10:57 am

Re: Styling the menu when starting at level 2

Post by janvl »

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
janvl
Power Poster
Power Poster
Posts: 972
Joined: Wed Aug 13, 2008 10:57 am

Re: Styling the menu when starting at level 2

Post by janvl »

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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Styling the menu when starting at level 2

Post by Dr.CSS »

Have you tried the childrenof= parameter?...
janvl
Power Poster
Power Poster
Posts: 972
Joined: Wed Aug 13, 2008 10:57 am

Re: Styling the menu when starting at level 2

Post by janvl »

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
janvl
Power Poster
Power Poster
Posts: 972
Joined: Wed Aug 13, 2008 10:57 am

Re: Styling the menu when starting at level 2

Post by janvl »

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
Post Reply

Return to “Layout and Design (CSS & HTML)”