Re: Submenu Reference
2005/07/01 10:42
Viewed 6732 times
Replies: 1/7

I investigated the possibility of cloning menus, and the best I could come up with was to allow an easy way to clone a submenu, but however, there will still be 2 menus defined.

The nice thing though is that you can easily define it with:

<ul id="foo-bar">
... menu contents ...
</ul>

<li class="clones-popup-foo-bar">Foo bar</li>

The above creates an item having the label “Foo bar” and having the submenu defined by the UL with the ID “foo-bar”.  You can clone it as many times you want.  The UL doesn't even need to be a descendent of the main menu UL--it can be defined anywhere in your document, possibly for other purposes than being a menu. ;-)  It's as fast as if you would have one UL for each menu, though—I mean, the menu elements are duplicated.  The current architecture of DynarchMenu does not allow simply using references.

I'll release the new code soon and you will be able to upgrade and test it.

Re[2]: Submenu Reference
2005/07/02 18:46
Viewed 9123 times
Replies: 1/6
by Ed

Okay, that beats manually doing the UL innerHTML rewrite. Thanks. :)

last
Re[3]: Submenu Reference
2005/07/05 14:45
Viewed 11583 times
Replies: 2/5

You should be able to download this update now, at https://www.dynarch.com/my/products.html (see the upgrade link at the bottom). Hope it does what you wanted. ;-) You can see a demo of the “clone” feature.

last
Google