We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12110
    • 122 Posts
    Hello, I just found a solution and maybe it helps for somebody too:

    DropMenu creates two .here li elements: when one element has a child element and this child element is the current page, it gets the here class as well as the parent element.

    As I didn’t want in my case to set the parent element to the here class I changed the snipped an commented out this part:

    // find the parent docs of the current "you-are-here" doc
    // used in the logic to mark parents as such also
    /* parent not to become  "you-are-here" element
    while ($parentID != $siteMapRoot && $parentID != 0) {
    	$parent = $modx->getParent($parentID, 0);
    	if ($parent) {
    		$parentID = $parent['id'];
    		$activeLinkIDs[] = $parentID;
    	} else {
    		$parentID = 0;
    	}
    }
    */


      • 5338
      • 35 Posts
      Wonderful! It works!!
        • 6726
        • 7,075 Posts
        funny you post this, I was just about to look into it, I had this problem with a 3 depth level DropMenu...

        Thanks a lot !
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id