We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6298
    • 13 Posts
    This menu builder is great, very powerful. I like the way you can show a description under the nav link with


    // $showDescription [true | false]
    // Specify if you would like to include the description
    // with the page title link.
    $showDescription = (!isset($showDescription)) ? true: ($showDescription==true);

    I found you can remove the "-" that appears between the page link & the description by changing the presence of

    "–"

    to

    "
    "

    here:

    // TO DO: set description to the first non-empty of an array of options
    if ($showDescription && (!empty($child[’$descriptionField’]))) {
    $desc = " – ".$child[’$descriptionField’];

    Just deleting the "–" to give " " doesn’t seem to work.


    Question: The descriptive link under the active page is always "hidden" can anyone help set it always visible on the "active" page?

    Thanks Nick.
    • Wayfinder is your friend in this respect. No hacking of code needed and much more powerful (and fast and flexible!) results. Wayfinder, coincidentally is what replaced DropMenu for 095 and beyond. smiley
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 6298
        • 13 Posts
        thanks, will have a play..