We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14281
    • 120 Posts
    I love wayfinder and use it all the time. The only thing it lacks (unless I’m missing it, and I wouldn’t be surprised if I was) is template placeholders for outer templates (I hope my terminology makes sense). For example, I might have a row template that looks like this:

    <li id="[+wf.title+]"><a [+wf.classes+] href="[+wf.link+]" >[+wf.linktext+]</a>[+wf.wrapper+]</li>


    You have stuff like [+wf.linktext+] and [+wf.title+] and such that can be used in row templates. Now, I might have an outer template that looks like this:

    <ul id="topnav">[+wf.wrapper+]</ul>


    However, the id becomes a problem if I have recursive sub-documents, because the same outer template is used for them, leaving me with duplicate id’s in one document, which is invalid markup. My only choice is to leave the id’s out.

    I would much rather be able to do something like:

    <ul id="[+wf.title+]Children">[+wf.wrapper+]</ul>


    So that the title of the parent document, which in my case I would set to the documents alias, followed by the suffix "Children", would be placed in the outer template of sub-document trees as that list’s unique id. This would be extremely helpful when setting up dynamic effects using javascript libraries.
      • 15987
      • 786 Posts
      If you create a template for the innerTpl it will be used for the menu items that have children and not the outerTpl. So you can have an outerTpl with the id and leave it off in the innerTpl

      The reason you are having a problem is because if there is no innerTpl set it uses the outerTpl
        • 14281
        • 120 Posts
        Hmm...I’m not sure I understand. I may not have explained myself clearly.

        I’m using both an inner and an outer Tpl. My inner tpl is a list item, and my out tpl is the opening and closing tag for an unordered list. I just want to be able to give the outer Tpl a unique id for css and javascript to be able to grab. It would be nice if I could use the parent document’s alias, along with a suffix, for that, like this:

        <ul id="[+wf.title+]Children">[+wf.wrapper+]</ul>

        Maybe you already understand that, and I’m just not grasping what you’re saying. It wouldn’t be the first time. I’m slow. smiley