Page 1 of 1

menu manager, start element and root siblings problem - error in list generation

Posted: Wed Dec 22, 2010 2:21 pm
by howey
Hi

I did post this initially in the css forum, but I think it is probably better here.

I am trying to show just part of a menu

2
2.1
2.1.1
2.1.1.1
2.1.1.2
2.1.2
2.1.3
2.2
2.3

I want to show 2.1.1 plus 2.1.2 and 2.1.3. With the children of 2.1.1 ie 2.1.1.1

I have set the men manager params to

Code: Select all

{menu start_element="2.1.1" show_root_siblings="1"}
This gives the desired menu items however, it dispays an error in the list generation. It only appears if I set show_root siblings

Code: Select all

<ul>              <!-- starts list -->
</li></ul>      <!-- adds extra closing tags -->
</li>              <!-- adds extra closing tags -->
<li><a href=" "><span>Communication & Control</span></a></li>
</ul>             <!-- adds extra closing tags -->
</li>              <!-- adds extra closing tags -->
<li><a href="http://localhost:8888/infotec-V2/index.php?page=steelwork"><span>Steelwork</span></a>
</li></ul>      <!-- adds extra closing tags -->
</li>              <!-- adds extra closing tags -->
<li><a href="http://localhost:8888/infotec-V2/index.php?page=aim"><span>AIM</span></a></li>
</ul>
I am using the default template, simple_navigation.tpl

Any suggestions on how to amend the template etc would be appreciated.

Re: menu manager, start element and root siblings problem - error in list generation

Posted: Wed Dec 22, 2010 2:55 pm
by RonnyK
on what version of CMSMS is this? ;)

Ronny

Re: menu manager, start element and root siblings problem - error in list generation

Posted: Wed Dec 22, 2010 3:03 pm
by howey
Hi

I am using 1.9.1

Howey

Re: menu manager, start element and root siblings problem - error in list generation

Posted: Wed Dec 22, 2010 5:55 pm
by RonnyK
could you try on 1.9.2 and report back. Some issues with MenuManager templates have been fixed in 1.9.2

Ronny

Re: menu manager, start element and root siblings problem - error in list generation

Posted: Wed Dec 22, 2010 7:52 pm
by howey
Hi

I have upgraded to 1.9.2 and I am still getting odd tags when I set the show_root_siblings

Code: Select all

{menu start_element="2.2" show_root_siblings="1"}
This is the html generated. I have removed the href info to make i easier to read.

Code: Select all

<ul>
</li>    <!-- odd tag -->
</ul>   <!-- odd tag -->
</li>    <!-- odd tag -->

<li><a href=" "><span>Display Options</span></a></li>

<li><a href=" "><span>LED Displays</span></a>

    <ul>
        <li><a href=" "><span>Large Format Main Board</span></a></li>
        <li><a href=" "><span>Medium Format Main Board</span></a></li>
        <li><a href=" "><span>Medium Format Platform and Concourse</span></a></li>
        <li><a href=" "><span>Small Format Platform and Concourse</span></a></li>
        <li><a href=" "><span>3 Line Platform Next Train Indicator (NTI)</span></a></li>
        <li><a href=" "><span>LUL and Subway</span></a></li>
    </ul>

</li>

<li><a href=" "><span>TFT Displays</span></a></li>
<li><a href=" "><span>LCD Displays</span></a></li>
<li><a href=" "><span>Clock Displays</span></a></li>
<li><a href=" "><span>Bus Displays</span></a></li>
<li><a href=" "><span>MicroPA - Help Points</span></a></li>

</ul>   <!-- odd tag -->
</li>    <!-- odd tag -->

<li><a href=" "><span>Communication & Control</span></a></li>

</ul>   <!-- odd tag -->
</li>    <!-- odd tag -->

<li><a href=" "><span>Steelwork</span></a></li>

</ul>    <!-- odd tag -->
</li>     <!-- odd tag -->
 
<li><a href=" "><span>AIM</span></a></li>

       <!-- odd no closing ul tag -->
Hope this helps

Re: menu manager, start element and root siblings problem -

Posted: Thu Feb 10, 2011 8:05 am
by plojewski
I've got the same... And it happens with childrenof, start_page, start_element too!

Why do they give us newest versions with bugs all the same????

Re: menu manager, start element and root siblings problem -

Posted: Thu Feb 10, 2011 7:40 pm
by Dr.CSS
Have you tried 1.9.3?...

Re: menu manager, start element and root siblings problem -

Posted: Fri Feb 11, 2011 7:23 am
by plojewski
Yes, from 1.9 to 1.9.3 - same problem...

Re: menu manager, start element and root siblings problem -

Posted: Fri Feb 11, 2011 11:25 am
by plojewski
I've just realised that there is a problem when childrens are type of page Product Category and Product Item (Cataloger plugin)... Any idea?

Re: menu manager, start element and root siblings problem -

Posted: Fri Feb 11, 2011 12:28 pm
by plojewski
[SOLVED]

DO NOT USE root attr in {breadcrumbs} tags! It works!