• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Styling the menu when starting at level 2
PostPosted: Thu Mar 10, 2011 9:44 pm 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 537
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


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Thu Mar 10, 2011 10:34 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Aug 12, 2008 9:30 pm
Posts: 1979
Location: Feldkirchen in Kärnten, Austria
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.

_________________
CMSMS Blog - I do this!
Forge profile
Github profile
Twitter
=============================================
Support CMSMS


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Thu Mar 10, 2011 10:57 pm 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 537
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


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Fri Mar 11, 2011 8:43 am 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 537
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


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Fri Mar 11, 2011 7:40 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11821
Location: Arizona
Upgrade to 1.9.4 as the menus have been reworked after some problems were found...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Fri Mar 11, 2011 7:52 pm 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 537
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


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Fri Mar 11, 2011 9:35 pm 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 537
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


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Sat Mar 12, 2011 7:43 am 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11821
Location: Arizona
Have you tried the childrenof= parameter?...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Sat Mar 12, 2011 9:11 am 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 537
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


Top
 Profile  
 
 Post subject: Re: Styling the menu when starting at level 2
PostPosted: Mon Mar 14, 2011 12:35 pm 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 537
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting