We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18597
    • 12 Posts
    Hello,, im Modx newby and just developing my first site there. neeed some help. i want a classic dropdown menu for my site.. im trying this:


    http://wiki.modxcms.com/index.php/Dropdown_Menu_with_Ditto


    dropdown menu is showed but just its doesnt jump to the page - first issue

    and i need my children pages to be there too.

    here the chunk code:

    <option value="[~[+id+]~]">[+pagetitle+]</option>

    here the insert code:

    <script language="JavaScript">
    function jumpTo(selObj){
    thevalue = selObj.options[selObj.selectedIndex].value;
    if (thevalue != 0) window.location= thevalue;
    return false
    }
    </script>
    <form action="#" onsubmit="return false" method="post">
    <select name="goto" onChange="jumpTo(this);">
    [!Ditto? &parents=`56` &tpl=`dropdown` &display=`100` &total=`100` &sortBy=`pagetitle` &sortDir=`ASC`!]
    </select>
    </form>




    please hellpp.. smiley

    thanks in advance

    M.