Iām trying to construct a list using the following Snippit call:
[[Wayfinder? &startId=`2` &outerTpl='PP_outer' &rowTpl='PP_row' &jsTpl='PP_javaScript']]
Is there something wrong with this call? Because it will not work.
PP_outer
<div class="peopleAndPlaces">
<div class="container">
[+wf.wrapper+]
</div>
</div>
PP_row
<div class="PP_item">
<h3><a href="[+wf.link+] " title="[+wf.title+]">[+wf.linktext+]</a><div onclick="PP_action('[+wf.docid+]')" id="close_[+wf.docid+]">open</div></h3>
<div id="summery_[+wf.docid+]" style="display:none;">
<p>[+wf.introtext+]</p>
</div>
</div>
PP_javaScript
<script>
function PP_action(ID){
summery_ID = "summery_"+ID
close_ID = "close_"+ID
if(document.getElementById(summery_ID).style.display =="none")
document.getElementById(summery_ID).style.display ="block";
document.getElementById(close_ID).innerHTML = "close";
else{
ocument.getElementById(summery_ID).style.display ="none";
document.getElementById(close_ID).innerHTML = "open";
}
}
</script>
when the page renders Wayfinder outputs the default markup.