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

    I al struggling to get Wayfinder working correctly for following structure:
    <ul id="pmenu">
    					<li><a href="#nogo">Home</a></li>
    					<li><a href="#nogo">Opleidingen</a></li>
    					<li class="drop"><a href="#nogo">Team<!--[if IE 7]><!--></a><!--<![endif]-->
    						<!--[if lte IE 6]><table><tr><td><![endif]-->
    						<ul>
    						<li><a href="#nogo" class="enclose">Informatica</a></li>
    						<li><a href="#nogo">Films</a></li>
    						<li><a href="#nogo">Talen</a></li>
    						<li><a href="#nogo">Flash</a></li>
    						<li><a href="#nogo">Video</a></li>
    						</ul>
    						<!--[if lte IE 6]></td></tr></table></a><![endif]-->
    						</li>
    					<li><a href="#nogo">De School</a></li>
    					<li><a href="#nogo">De Toekomst</a></li>
    					</ul>


    This is what I need. I thought that this was a basic Wayfinder usage, but i can’t get it right (dropdown is not working, while just copying this code actually dropdowns).
    I’ve experimented with wfOUter and wfInner as in http://wiki.modxcms.com/index.php/Wayfinder

    Which chunks do I need to get Wayfinder working as in code above? And as simple as possible, how many and which chunks do i need?
    Any help appreciated!
    thx
      • 7231
      • 4,205 Posts
      I think you can do it with:

      outerTpl:
      <ul id="pmenu">
      	[+wf.wrapper+]
      </ul>


      innerTpl:
      <!--[if lte IE 6]><table><tr><td><![endif]-->
      <ul>
      	[+wf.wrapper+]
      </ul>
      <!--[if lte IE 6]></td></tr></table></a><![endif]-->


      rowTpl:
      <li><a href="#nogo">[+wf.linktext+]</a></li>


      parentRowTpl:
      <li class="drop"><a href="#nogo">[+wf.linktext+]<!--[if IE 7]><!--></a><!--<![endif]-->
          [+wf.wrapper+]
      </li>


      innerRowTpl:
      <li><a href="#nogo">[+wf.linktext+]</a></li>


      This is untested but could work laugh

      BTW - this link has good Wayfinder documentation: http://www.muddydogpaws.com/development/wayfinder/parameters.html
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 2896
        • 70 Posts
        great! This worked. I was not using Parentrowtpl ... I will check out the documentation again
        thx