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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | megamenu-1299688-1.patch | 816 bytes | davidneedham |
Comments
Comment #1
davidneedhamHere's my patch. Seems to do the trick for me on 6.x-2.x-dev.
Comment #2
chicagomom commentedThanks 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.
Comment #3
Anonymous (not verified) commentedComment #4
Anonymous (not verified) commentedCommitted to 6.x-2.x in 19218fb
Comment #4.0
Anonymous (not verified) commentedFixing grammar.