We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15065
    • 138 Posts
    Hi

    I have one site with menus like -- Home About Contact etc.
    1.) I want to insert one separator between them like Home | About | Contact etc.
    2.) When I create new document pages, I want to come it right side of menu [ after Contact in this case ] by default. Now its menu index is like Contact - 0, About - 1, Home - 2 .. the menu title are arranged in ascending from right to left. I want this arrangement from left to right by default.
    How can I resolve these two problems... If anybody can help it would be very helpful..

    Thanks

    Jurdy
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can arrange the order of the menu items by changing the "menu index" of the documents in question.

      Perhaps the best way to have a divider like that is to use a right-border for each element (li or a elements as seems most appropriate), the for the ".last" or ".last a" element have the css set the right-border to none.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 15065
        • 138 Posts
        can we change the order of build menu , I mean in reverse order as the older versions. Last created pages coming at the right end ? there is any options other than change menu index , I am asking this again because our customer want to just create pages and that pages come at right of menu one by one.

        Thanks

        Jurdy
          • 25663 MODX Staff
          • 12,272 Posts
          One option: wrap it in a DIV, make each item "float: right; display: block" (including the separators), and you’re done. Probably need a clearing break or other technique at the end.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 15065
            • 138 Posts
            Thanks

            Thanks & Regards

            Jurdy