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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
howey
Forum Members
Forum Members
Posts: 158
Joined: Fri Sep 14, 2007 1:05 pm

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

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post by RonnyK »

on what version of CMSMS is this? ;)

Ronny
howey
Forum Members
Forum Members
Posts: 158
Joined: Fri Sep 14, 2007 1:05 pm

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

Post by howey »

Hi

I am using 1.9.1

Howey
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
howey
Forum Members
Forum Members
Posts: 158
Joined: Fri Sep 14, 2007 1:05 pm

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

Post 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
plojewski
New Member
New Member
Posts: 9
Joined: Wed Feb 09, 2011 8:11 am

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

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

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

Post by Dr.CSS »

Have you tried 1.9.3?...
plojewski
New Member
New Member
Posts: 9
Joined: Wed Feb 09, 2011 8:11 am

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

Post by plojewski »

Yes, from 1.9 to 1.9.3 - same problem...
plojewski
New Member
New Member
Posts: 9
Joined: Wed Feb 09, 2011 8:11 am

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

Post 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?
plojewski
New Member
New Member
Posts: 9
Joined: Wed Feb 09, 2011 8:11 am

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

Post by plojewski »

[SOLVED]

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

Return to “CMSMS Core”