We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20401
    • 13 Posts
    Hi

    I followed this tutorial for building an Accordion menu with Wayfinder using JQuery
    http://wiki.modxcms.com/index.php/Accordion_menu_with_Wayfinder_using_JQuery

    I believe it is written for Evolution and I’m trying to get it working for Revolution and it just ain’t working!

    I assume all "[+" "+]" tags need to change to "[[+" "+]]" which I’ve done. I’ve followed the tutorial exactly, called all the css and js files, built all the chunks, and my wayfinder call is the same as in the tutorial (see below).
    [!Wayfinder? &startId=`0` &level=`2` &outerTpl=`wfOuter` &parentRowTpl=`wfParentRow` &activeParentRowTpl=`wfActiveParentRow` &innerTpl=`wfInner` &rowTpl=`wfRow` &innerRowTpl=`wfInnerRow` &cssTpl=`wfStyle` &jsTpl=`wfJs` &hereTpl=`wfHere` !]

    This outputs an empty unordered list (aka no menu!)
    <div class="accordion-menu">
    <ul>

    </ul>
    </div>

    so how can I make this work for Revolution?

    Incidentally if I strip the wayfinder call back to the following, I do at least get a basic menu output but without any accordian functionality.
    [!Wayfinder? &startId=`0` &level=`2` &outerTpl=`wfOuter`!]

    hope someone can shed some light on this for me.
    thanks in advance.
      • 22019
      • 390 Posts
      You assumed wrong (or explained wrong).

      The tag syntax is [[+placeholder]] not [[+placeholder+]]
      Similarly, wayfinder shouldn’t be called with that extra ! at the end, ie [[!Wayfinder? ...some parameters here... ]]

      Syntax is explained in the manual:
      http://rtfm.modx.com/display/revolution20/Tag+Syntax
        Writer > E-consultant > MODx developer || Salesforce || modx 2.x || PHP 5.2.13 || MySQL client 5.0.86
        • 20401
        • 13 Posts
        odeclas - you rock... thankyou oh so much. that’s fixed it. i thought i must have a syntax problem somewhere. much obliged smiley