Jade,
I just ran into the problem of the empty submenus in IE7. Back in post #492 you said
Any further resolution of the problem?
Second question: I tried to add a regular level2 link between the heading of the categories and the categories listing from the ul_generator.
It wouldn't work. Any ideas?<li class="submenu"><a href="<?php echo DIR_WS_CATALOG. '#'; ?>"><?php echo HEADER_TITLE_CATEGORIES; ?></a>
<ul class="level2">
<li class="submenu"><a href="<?php echo DIR_WS_CATALOG. 'index.php?main_page=page&'.'id=30&chapter=0'; ?>">Products</a></li>
</ul>
<?php
// load the UL-generator class and produce the menu list dynamically from there
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
$menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
$menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
echo $menulist; ?></li>
Yeah, that won't work.....
You *could* try this, but I don't know if it will work either. open up includes/classes_categories_ul_generator.php and change this:
to this:Code:$parent_group_start_string = '<ul%s>',
Code:$parent_group_start_string = '<ul%s> <li class="submenu"><a href="<?php echo DIR_WS_CATALOG. 'index.php?main_page=page&'.'id=30&chapter =0'; ?>">Products</a></li>',
Nope, that didn't work. It killed the page right after the level1 header button.
If I remember correctly, this mod creates a tree (array) before turning it to display string. Wouldnt it be easier to just append the faux category branches into the tree instead of the output string?
I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me
Jade,
I thought about that. Wondered if it could mess up some other things.
I'll give it a try and let you know what I see.
I sent you an email about my site. Are you williing to do a critique?
Jade,
This is a fantastic download, and generally prefer it to Paul's version due to how extensive the menu is. Is there any way at all though, in a similar way to Paul's, to have the top level categories as individual drop-downs, rather than under "categories". I only have 3 main categories of products, and would like to be able to have them as their own drop-downs, alongside the home, information etc etc in the horizontal menu.
I am not great with PHP so changing the code myself it proving a little difficult!
Best regards, and thanks in advance,
Chris
Hi everyone,
Firstly, I'm really loving this menu system! It makes things so much cleaner.
Unfortunately, I seem to be running into the same issue as the person in post #25 had - sort of. The glitch I have is where the menus are dropping behind a couple of flash images that are located near the top of my page.
Post #36 states to add z-index: 5; to the stylesheet.css file under the 'headerwrapper' section (I assume this is what he did). Tried that with no success.
If there is a workaround for this I'd really appreciate it.
Best regards,
Mark
Bookmarks