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

    I’ve a problem with Wayfinder. When I set a &rowTpl, the childs will disappear. Why?

    Chunk rtpl
    <li><a href="/nieuw/index.php?q=[+wf.title+].html" title="[+wf.title+]">[+wf.title+]</a></li>


    Wayfindercall:
    [!Wayfinder?&startId=`4`&innerClass=level2&outerClass=level1&rowTpl=rtpl!]

    Will output:
    <ul class="level1">
    	<li><a href="/nieuw/index.php?q=Diciplines.html" title="Diciplines">Diciplines</a></li>
    	<li><a href="/nieuw/index.php?q=Projecten.html" title="Projecten">Projecten</a></li>
    	<li><a href="/nieuw/index.php?q=Ga naar systemen.html" title="Ga naar systemen">Ga naar systemen</a></li>
    	<li><a href="/nieuw/index.php?q=Contact.html" title="Contact">Contact</a></li>
    </ul>
    


    Wayfindercall:
    [!Wayfinder?&startId=`4`&innerClass=level2&outerClass=level1!]

    Will output:
    <ul class="level1">
    	<li class="active"><a href="/nieuw/index.php?id=2" title="Diciplines" >Diciplines</a>
    		<ul class="level2">
    			<li><a href="/nieuw/index.php?id=3" title="Elektrotechniek" >Elektrotechniek</a></li>
    			<li><a href="/nieuw/index.php?id=5" title="Werktuigkunde" >Werktuigkunde</a></li>
    			<li class="active"><a href="/nieuw/index.php?id=6" title="Data" >Data</a></li>
    			<li><a href="/nieuw/index.php?id=7" title="Beveiliging" >Beveiliging</a></li>
    			<li><a href="/nieuw/index.php?id=8" title="Brandbeveiliging" >Brandbeveiliging</a></li>
    			<li><a href="/nieuw/index.php?id=9" title="Service en Onderhoud" >Service en Onderhoud</a></li>
    			<li class="last"><a href="/nieuw/index.php?id=10" title="Inspecties" >Inspecties</a></li>
    		</ul>
    	</li>
    	<li><a href="/nieuw/index.php?id=11" title="Projecten" >Projecten</a></li>
    	<li><a href="http://www.terberg-systeemintegratie.nl/communicatie.php" title="Ga naar systemen" Ga naar systemen>Ga naar systemen</a></li>
    	<li class="last"><a href="/nieuw/index.php?id=14" title="Contact" Contact>Contact</a></li>
    </ul>
    


    Thanks in advance
      • 22427
      • 793 Posts
      You have some missing backticks in your WF call:
      [!Wayfinder?&startId=`4`&innerClass=level2&outerClass=level1&rowTpl=rtpl!]
      should be
      [!Wayfinder?&startId=`4`&innerClass=`level2`&outerClass=`level1`&rowTpl=`rtpl`!]
        • 23184
        • 8 Posts
        Hi Ottogal and others,

        Your call don’t work either and process the same output.

        Thanks in advance
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You forgot the [+wf.wrapper+] and without that wayfinder won’t continue processing anything from that row.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org