We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    This is the basic setup of th menu.

              <!-- Navigation item -->
              <ul>
                <li><a href="index.html">Overview</a></li>
              </ul>
    
              <!-- Navigation item -->
              <ul>
                <li><a href="#">Basic Layouts<!--[if IE 7]><!--></a><!--<![endif]-->
                  <table><tr><td>
                    <ul>
                      <li><a href="layout1_basic.html">Basic-1 (1-col)</a></li>
                      <li><a href="layout2_basic.html">Basic-2 (2-col)</a></li>
                      <li><a href="layout3_basic.html">Basic-3 (2-col)</a></li>
                      <li><a href="layout4_basic.html">Basic-4 (3-col)</a></li>
                      <li><a href="layout5_basic.html">Basic-5 (3-col)</a></li>                                    
                    </ul>
                  </td></tr></table><!--[if lte IE 6]--></a><!--[endif]-->
                </li>
              </ul>


    This is my rowTpl:

     
    <!-- Navigation item -->
    <ul>
    <li><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>
    </ul>
    


    Then is my innerTpl:

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


    This is my innerRowTpl:

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


    Now this comes extremely close, but I am unsure how to get that
    <!--[if IE 7]><!--></a><!--<![endif]-->
    ONLY when there is a submenu. If I place that code into rowTpl then it will show up for the first Navigation Item when I only want it for the Second one that has the submenu?
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 15987
      • 786 Posts
      You can use the template &parentRowTpl.

      This template is only used on folders that have children displayed in the output of Wayfinder.
        • 14050
        • 788 Posts
        Kyle,

        That almost does it, but it will cause things to mess up when the Parent’s children are documents that aren’t set to be in the menu. If it is a Parent without any children that belong in the menu, then I would need it to be templated as if it wasn’t a parent at all. Just so you know, this is all for the Multiflex-3 template which I can get to work flawlessly in everything but IE. It always causes so much headache :-D
          Jesse R.
          Consider trying something new and extraordinary.
          Illinois Wine

          Have you considered donating to MODx lately?
          Donate now. Every contribution helps.
          • 15987
          • 786 Posts
          I think it should work even if the sub items are not set to show in menu. This should work because for that template to be used the item has to have sub-items displayed.
            • 14050
            • 788 Posts
            That’s strange because it is using the parentRowTpl for a document that is a folder, but within the folder all the documents are set to not show in the menu. This seems to make sense when looking at the code as it is only checking to make sure the document is a folder at the top level, I think. What would be the easiest way to add a template option for a Parent with no visible children?
              Jesse R.
              Consider trying something new and extraordinary.
              Illinois Wine

              Have you considered donating to MODx lately?
              Donate now. Every contribution helps.
              • 15987
              • 786 Posts
              try changing line 212 in wayfinder.inc.php to this, I have not tested this but I think it should work.

                      } elseif ($resource['isfolder'] && $this->templates['parentRowTpl'] && ($resource['level'] < $this->level || $this->level == 0) && $subMenu) {
              
                • 14050
                • 788 Posts
                Kyle,

                I am sorry to be a pain in the ass. If I could figure it out I would fix it myself. But placing $subMenu in the conditional is not changing anything. I believe $subMenu is always evaluated as ’TRUE.’ Any other ideas? I did place ’FALSE’ in there just to check and make sure I had the conditionals setup correctly, and that was altering the output, so again I think $subMenu is always evaluating to ’TRUE.’

                Jesse
                  Jesse R.
                  Consider trying something new and extraordinary.
                  Illinois Wine

                  Have you considered donating to MODx lately?
                  Donate now. Every contribution helps.
                  • 14050
                  • 788 Posts
                  Quote from: jesster444 at Nov 17, 2006, 09:21 AM

                  Kyle,

                  I am sorry to be a pain in the ass. If I could figure it out I would fix it myself. But placing $subMenu in the conditional is not changing anything. I believe $subMenu is always evaluated as ’TRUE.’ Any other ideas? I did place ’FALSE’ in there just to check and make sure I had the conditionals setup correctly, and that was altering the output, so again I think $subMenu is always evaluating to ’TRUE.’


                  Kyle do you have any other ideas on solving this problem that we discussed in this thread?

                  Jesse
                    Jesse R.
                    Consider trying something new and extraordinary.
                    Illinois Wine

                    Have you considered donating to MODx lately?
                    Donate now. Every contribution helps.
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Kyle’s out for a week on the slopes... I suspect he’ll be responding after Christmas, or right before.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 15987
                      • 786 Posts
                      Just got back smiley I will try to look into this soon.