Everything was working great until I told it that I wanted to use my own custom skin. From that point on I got two distinct errors.

One was identical to #1061450: Warning: Undefined variable: leaf_items_list except that problem was for Drupal 7 and I'm in Drupal 6. I made the change as the original author recommended and it also fixed it for me. The error I got complained that leaf_items_list did not exist at line 252, so I added:

Line 195:
        foreach ($branch['below'] as $twig) {
+      $leaf_items_list="";
          if ($twig['below']){

I also got an error saying that twig_items_list did not exist at Line 292, so I added a short if statement to add an empty variable if it doesn't already exist.

Line 284:
+     if(empty($twig_items_list)){
+         $twig_items_list = "";
+     }

Now all my errors are gone. I suspect that I at least one of these errors because I did not have any third level items - only parent and children. I'll wrap this up into a patch and post in a short while.

CommentFileSizeAuthor
#1 megamenu-1299688-1.patch816 bytesdavidneedham

Comments

davidneedham’s picture

Status: Active » Needs review
StatusFileSize
new816 bytes

Here's my patch. Seems to do the trick for me on 6.x-2.x-dev.

chicagomom’s picture

Thanks David. I was also having these issues with the 6.x dev version, and your patch seems to have done the trick! Appreciate your taking the time to roll the patch.

Anonymous’s picture

Assigned: Unassigned »
Issue tags: +lowhanging
Anonymous’s picture

Status: Needs review » Closed (fixed)

Committed to 6.x-2.x in 19218fb

Anonymous’s picture

Issue summary: View changes

Fixing grammar.