We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18961 ☆ A M B ☆
    • 237 Posts
    Hi,

    I have two sites that are setup the same way. For some reason on one of the sites when I call wayfinder:

    [[Wayfinder? &startId=`0` &outerTpl=`top-nav` &excludeDocs=`2`]]

    Here’s the template:

    <ul id="top-nav"[+wf.classes+]>[+wf.wrapper+]</ul>

    I get the following code:


    <ul id="top-nav">

    <li><a href="http://diabetesfootcenter.info/" title="Home" >Home</a></li>

    <li class="active"><a href="/aboutus" title="About Us" >About Us</a>

    <ul id="top-nav">
    <li><a href="/dr.-teichman" title="Dr. Teichman" >Dr. Teichman</a></li>
    </ul>
    </li>
    <li><a href="/heelpaincenter" title="Heel Pain Center" >Heel Pain Center</a></li>
    <li><a href="/diabeticfootandanklecenter" title="Diabetic Foot and Ankle Center" >Diabetic Foot and Ankle Center</a></li>
    <li><a href="/officelocations" title="Office Locations" >Office Locations</a></li>
    <li><a href="/testimonials" title="Testimonials" >Testimonials</a></li>
    <li class="last"><a href="/contactus" title="Contact Us" >Contact Us</a></li>
    </ul>

    As you can see it the code is returning the UL ID of the submenu as <ul id="top-nav">

    I don’t want the submenu to have id of Top Nav and on my other site using the exact same template, exact same call, the sub-menus do not come up with the <ul id="top-nav"> they return as just <ul> which is what I need.

    I’m not the best with programming, but I can’t understand why it’s working differently on two sites with exactly the same call, the same template. Any help would be appreciated. If anyone needs more information, please let me know.

    I’m using Evolution 1.0.5 on both sites. Same hosting environment.
      Michael Smull
      http://www.bigpixelstudio.com
      twitter: @mdsdesign
      • 8609
      • 607 Posts
      Create a chunk with the code
      <ul>[+wf.wrapper+]</ul>

      name it something like top-nav-inner

      Then call it as your innerTpl in your WF call, i.e. add &innerTpl=`top-nav-inner` to your WF call
        • 18961 ☆ A M B ☆
        • 237 Posts
        Works like a charm. Thank you so much. These boards never cease to amaze me. I’ve used a few solutions from your posts in the past. Thanks for being there, over and over and over.....
          Michael Smull
          http://www.bigpixelstudio.com
          twitter: @mdsdesign