We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16429
    • 254 Posts
    Using Wayfinder to create a dropdown menu I’ve recognized that Wayfinder user the ParentRowTpl everytime it finds a "folder" document, even if it has no children. Just needs to find a "folder" to use ParentRowTpl.

    But using (for example) some complex dropdown from cssplay.co.uk you can find that the menu is screwed up in IE, because of (following the example) the IE-only conditional comments used to build up a table for IE that are needed when a "folder" has children, but not when the "folder" has no children.

    I think it needs to output "ParentRowTpl" only when a document is a "folder" AND has children.

    What do you think?
      kudo
      www.kudolink.com - webdesign (surprised?)

      [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
      • 15987
      • 786 Posts
      If the folder has no children couldn’t you just not make it a folder? That should fix your problem.

      In the code I assume that if it is a folder it will have children, and then use the parent* templates if the children will be displayed, i.e. the max level has not been reached.
        • 16429
        • 254 Posts
        Ok, but a folder can still be empty until someone writes something on it smiley

        Didn’t mean to point it out as an error, just asked to know if this was a bug.
        Now I know this is not a bug wink
          kudo
          www.kudolink.com - webdesign (surprised?)

          [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]