We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32407
    • 35 Posts
    I am using this in my declaration for wayfinder to render the menu

    [[!Wayfinder?
    &startId=`0`
    &level=`3`
    &parentClass=`hide`
    &parentRowhereTpl=`wfActiveParentRow`
    &parentRowTpl=`wfParentRow`
    &outerTpl=`wfOuter`
    &innerTpl=`wfInner’
    &rowTpl=`wfRow`
    &hereClass=`CurrentItem`
    ]]

    wfOuter = <div class="Menu"><ul>[[+wf.wrapper]]</ul></div>

    wfInner = <ul>[[++wf.wrapper]]</ul>

    wfParentRow = <li[[++wf.classes]]><a href="[[++wf.link]]"><em class="left"></em><b>[[++wf.linktext]]</b><em class="right"></em><!--[if gte IE 7]><!--></a><!--<![endif]--><table><tr><td>[[++wf.wrapper]]</td></tr></table><!--[if lte IE 6]></a><![endif]--></li>

    wfRow = <li[[+wf.classes]]><a href="[[++wf.link]]"><em class="left"></em><b>[[+wf.linktext]]</b><em class="right"></em></a>[[+wf.wrapper]]</li>

    wfActiveParentRow = <li class="ParentItem"><a href="[[++wf.link]]"><em class="left"></em><b>[[++wf.linktext]]</b><em class="right"></em><!--[if gte IE 7]><!--></a><!--<![endif]--><table><tr><td>[[++wf.wrapper]]</td></tr></table><!--[if lte IE 6]></a><![endif]--></li>

    What is happening is that when it renders it is using the outerTpl only and none of the other Tpls. In your documentation it says in one example this:"

    Evolution: [+wf._____+]
    Revolution: [[+wf._____]]

    Then it says this:

    Evolution: [+wf._____+]
    Revolution: [[++wf._____]]

    The second one is after

    &rowTpl

    Name of the chunk containing the template for the regular row items.
    Available placeholders are:

    •wf.classes - outputs relevant classes (including class=" ")
    •wf.classnames - outputs relevant classes (without class=" ")
    •wf.link - the href value for your link
    •wf.title - the title text for the link, from the field as specified in the &titleOfLinks parameter
    •wf.linktext - the text for the actual link, from the field as specified in the &textOfLinks parameter
    •wf.wrapper - outputs inner contents such as submenus
    •wf.id - outputs a unique id
    •wf.attributes - outputs the link attributes of the current item
    •wf.docid - the document identifier for the current item
    •wf.description - the current item’s description

    So

    1. which one is it really?


    2. Why isn’t wayfinder rendering the other TPLs
      • 4310
      • 2,310 Posts
      I’m not a Revo user, but as only your outerTpl doesn’t contain the [[++ format of placeholder, I’d guess [[+ is correct
        • 3749
        • 24,544 Posts
        Definitely [[+.

        [[++ is for system settings.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 32407
          • 35 Posts
          Ok i Got that it is [[+

          But my inner templates are not rendering it is using the default template inside of wayfinder still.
            • 13505
            • 8 Posts
            jameswwright Reply #5, 16 years ago
            I’m sure you’ve figured this out already but one of your quotations is wrong you have a single quote instead of a grave accent:
            &innerTpl=`wfInner'
            


            when it should be:

            &innerTpl=`wfInner`
            
              • 32407
              • 35 Posts
              Yes I saw that