Thanks for sharing Photowebmax....
here is what i tried with from the wiki..step by step....
i have this two js files in my template head.
<script type="text/javascript" src="assets/js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="assets/js/ddaccordion.js"></script>
chunks:
outerTpl
<div class="accordion-menu">
<ul>
[+wf.wrapper+]
</ul>
</div>
innerTpl
<ul class="submenu">
[+wf.wrapper+]
</ul>
wfStyle
<style type="text/css">
.accordion-menu {
width:160px;
font:11px "Verdana";
}
.accordion-menu a.menuitem{
background:#e5e5e5;
font:bold 11px "Verdana";
display:block;
width:auto;
padding:3px 0 3px 5px;
border-top:2px solid #FFFFFF;
}
.accordion-menu li{
list-style-type:none;
}
.accordion-menu a.menuitem:visited, .accordion-menu .menuitem:active{
color:#cc3300;
}
.accordion-menu a.menuitem:hover{
background:#d8d8d8;
}
.accordion-menu ul.submenu{
width:auto;
list-style-type:none;
}
.accordion-menu ul.submenu li{
text-indent:5px;
background:#d3d3d3;
display:block;
width:auto;
}
.accordion-menu ul.submenu li a{
text-indent:5px;
background:#d3d3d3;
display:block;
width:auto;
padding:3px 0 3px 5px;
border-top:2px solid #FFFFFF;
}
.accordion-menu ul.submenu li a:hover{
background-color:#c0bfbf;
}
.activemenu{
background:#665f6e url("../images/icons/menu-bg.gif") no-repeat right;
color:#FFFFFF;
font:bold 11px "Verdana";
display:block;
width:auto;
padding:3px 0 3px 5px;
border-top:2px solid #FFFFFF;
}
.accordion-menu ul.submenu li a.activemenu{
background:#8d8793 url("../images/icons/submenu-bg.gif") no-repeat right;
color:#FFFFFF;
font:11px "Verdana";
display:block;
width:auto;
padding:3px 0 3px 5px;
border-top:2px solid #FFFFFF;
text-indent:5px;
}
#active-submenuheader{
background:#665f6e;
color:#FFFFFF;
font:bold 11px "Verdana";
display:block;
width:auto;
padding:3px 0 3px 5px;
border-top:2px solid #FFFFFF;
}
</style>
wfJs
<script type="text/javascript">
ddaccordion.init({
headerclass: "submenuheader", //Shared CSS class name of headers group
contentclass: "submenu", //Shared CSS class name of contents group
revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", ""], //Two CSS classes to be applied to the header when it’s collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["suffix", "", ""], //Additional HTML added to the header when it’s collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
})
</script>
wfOuter
<div class="accordion-menu">
<ul>
[+wf.wrapper+]
</ul>
</div>
wfRow
<li><a class="menuitem" href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li>
wfParentRow
<li><a class="menuitem submenuheader" href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
[+wf.wrapper+]</li>
wfInner
<ul class="submenu">
[+wf.wrapper+]
</ul>
wfInnerRow
<li><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li>
wfActiveParentRow
<li><a class="menuitem submenuheader" id="active-submenuheader" href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
[+wf.wrapper+]</li>
wfHere
<li><a class="activemenu" href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></li>
[+wf.wrapper+]
and i have this in my template file:
[!Wayfinder? &startId=`0` &level=`2` &outerTpl=`wfOuter` &parentRowTpl=`wfParentRow` &activeParentRowTpl=`wfActiveParentRow` &innerTpl=`wfInner` &rowTpl=`wfRow` &innerRowTpl=`wfInnerRow` &jsTpl=`wfJs` &hereTpl=`wfHere` !]
anybody see what iam missing..?