Page 1 of 1

MenuManager

Posted: Fri Aug 04, 2006 7:15 am
by Utter
Just when I thought me and the MenuManager were getting along just funky and all old animosities were firmly in the past this had to happen...

I'm in the process of turning someone elses code into a CMSMS template and all was going well, I had MM working fine - in fact I had the same minimal template controlling a horizontal and a vertical menu with different CSS styling.

The code for the vertical menu was this

{menu start_element="x.1" template="css_version" show_root_siblings="1"} (where x is the section number)

This showed the first child page of the section and its siblings. Worked fine.

After an svn update, however, it now shows EVERY page on the site in the menu with the css highlighting ALL the pages in the named section instead of just the page it's on. You can see this here

http://utterhome.plus.com/NSCLC/index.p ... fessionals

If you scroll down you can see the wrongly highlighted section of pages. This happens on all pages now.

Has something changed in MM parameters that's not reflected in the Help text?

System info:

Linux version = CentOS Linux 4.1
MySQL version = 4.1.20
PHP version = 4.3.9-3

Re: MenuManager

Posted: Fri Aug 04, 2006 7:23 am
by cyberman
Utter wrote: After an svn update,
I'm not a dev, but cause there are some code changes svn version will perhaps only work with CMSms 1.x correctly ::).

Re: MenuManager

Posted: Fri Aug 04, 2006 7:41 am
by Dr.CSS
Try this change...

/* a:link style that is applied to SELECTED PAGE OF SCHOOL STAFF SECTION */
#left_nav .menuactive a{    Delete the a as in the second paste down there \/
background-image:url(images/back_over_staff.gif);
  background-position:left;
  background-repeat:no-repeat;

/* a:link style that is applied to SELECTED PAGE OF SCHOOL STAFF SECTION */
#left_nav .menuactive {
background-image:url(images/back_over_staff.gif);
  background-position:left;
  background-repeat:no-repeat;

Re: MenuManager

Posted: Sat Aug 05, 2006 2:24 am
by Elijah Lofgren
mark wrote: Try this change...

/* a:link style that is applied to SELECTED PAGE OF SCHOOL STAFF SECTION */
#left_nav .menuactive a{    Delete the a as in the second paste down there \/
background-image:url(images/back_over_staff.gif);
  background-position:left;
  background-repeat:no-repeat;

/* a:link style that is applied to SELECTED PAGE OF SCHOOL STAFF SECTION */
#left_nav .menuactive {
background-image:url(images/back_over_staff.gif);
  background-position:left;
  background-repeat:no-repeat;
I didn't try Mark's solution, but this seemed to work for me on that page:
Replace:

Code: Select all

/* a: style for ICT PRO currently selected page */
#left_nav .menuactive a{
 background-image:url(images/back_over_pro.gif);
  background-position:left;
  background-repeat:no-repeat;
  color:#000000;
  /* background-color: #E7ECD5; */
}
with:

Code: Select all

/* a: style for ICT PRO currently selected page */
#left_nav .menuactive {
 background-image:url(images/back_over_pro.gif);
  background-position:left;
  background-repeat:no-repeat;
  color:#000000;
  /* background-color: #E7ECD5; */
}
The Web Developer extension of Firefox is very useful in debugging CSS problems ;)
See: http://chrispederick.com/work/webdeveloper/

Hope this helps,

Elijah

Re: MenuManager

Posted: Sat Aug 05, 2006 8:15 am
by Utter
Guys, guys....

You're really not reading me here - I must be losing my powers of description  ;P

The problem is NOT the CSS it's the fact that MM is now dumping ALL the pages from the site into the menu instead of just the root siblings for each section. Before this occurred each section menu simply went from x.1 to whatever the last page of the section was but now displays everything at once.

If I remove the 'show_root_siblings' parameter I just get the first page of the section in the menu which is right so somehow the sibings parameter is being misinterpreted. Or something.

Re: MenuManager

Posted: Sat Aug 05, 2006 7:40 pm
by Elijah Lofgren
Utter wrote: Guys, guys....

You're really not reading me here - I must be losing my powers of description  ;P
My bad, I was sleep deprived.  ;)
Utter wrote: The problem is NOT the CSS it's the fact that MM is now dumping ALL the pages from the site into the menu instead of just the root siblings for each section. Before this occurred each section menu simply went from x.1 to whatever the last page of the section was but now displays everything at once.

If I remove the 'show_root_siblings' parameter I just get the first page of the section in the menu which is right so somehow the sibings parameter is being misinterpreted. Or something.
I think I just fixed your problem:
http://viewsvn.cmsmadesimple.org/viewsv ... r&view=rev

Please let me know if a svn update fixes it.

Thanks,

Elijah

Re: MenuManager

Posted: Sat Aug 05, 2006 10:17 pm
by Utter
Elijah. You're a star!

Works just like it says on the tin now... Cheers!