Sorry microcipcip, I only thought that was necessary for blocks or lines of code rather than citing some in a sentence. And thank you for responding fourroses666.
...Speaking of code here is what I have:
Simple wayfinder call that works:
[[!Wayfinder? &startId=`4` &level=`2` ]]
Wayfinder call that doesn't work / doesn't seem to generate the sub menu unordered list:
[[!Wayfinder? &startId=`4` &level=`2` &outerTpl=`wfOuter` &parentRowTpl=`wfParentRow` &activeParentRowTpl=`wfActiveParentRow` &innerTpl=`wfInner` &rowTpl=`wfRow` &innerRowTpl=`wfInnerRow` &cssTpl=`wfStyle` &jsTpl=`wfJs` &hereTpl=`wfHere` ]]
Here are my chunks copied straight from the example and then adjusted for Revolution:
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>
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;
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;
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>
wfOuter:
<div class="accordion-menu">
<ul>
[[+wf.wrapper]]
</ul>
</div>
wfRow:
<li><a class="menuitem" href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.title]]</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]]
- - -
It seems to me the issue is when I use the wfRow chunk, that is when the submenu isn't generated. But I don't know if that is a problem with the chunk or the JavaScript or the css.
Attached is a screen grab of my document tree, I'm only generating a menu from what is in the Work resource.
Help greatly appreciated!!!
Thanks,
David