Looks promising and subsequently gave me a lateral ’accordion’ style thought. Is there an equivalent call to place a level in the <ul>, or could there be?
If so, I think, those who wanted multi-level accordions, could then run Wayfinder with these 2 params set to provide toggler and element class identities. Then, logically, by amending the standard MooTools accordion js to run as an array it could set up an array of toggle calls, even if it had to account for the toggle always being one less then the element, unless the params were synced, which would be ideal, in Wayfinder.
e.g.
<div ="multi-accordion>
<ul class="toggler1" .. ... >
<li class='element2" ... >
<ul class="toggler1" ... ... > [same level]
<li class="element2" ... >
<ul class="toggler 2 ... ...> [next level]
<li class="element3">
js
....
var toggler=$$(togglerName+counter);
var content=$$(contentName+counter); [or -1 ? would need some failsafe code for start & end I guess]
while(toggler.length>1)
...
Could be used to create distinct menu structures by full layer, not just row, as well.
Thoughts?
Regards and again thanks