We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26799
    • 177 Posts
    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.
      • 22303 MODX Staff
      • 10,725 Posts
      Do not surround snippet parameters with quotes! They should be surrounded with backticks, or the ` character.
        • 26799
        • 177 Posts
        Wow I should really pay better attention, haha, thanks for taking the time to help out a poor fool on his way to going crazy

        ` > ’