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

    I’ve got a couple of issues with my site and they are..
    1. The styling has disappeared twice now in teh last week. I can’t figure out why it’s happening. I have not made any changes to the CSS references in the templates...has this happened to anyone before?
    2. My menu items are the wrong way round. I’ve altered the numbering and have checked with a static copy html and it works and displays ok but when i’m using Modx the menu displays backwards.
    The code i’m using is:
    PLACED IN TEMPLATE:
    <ul id="tabs">
    [!Ditto? &documents=`24,25,26,27,28` &tpl=`tabsmenu` &total=`5` &display=`5`!]
    </ul>
    CHUNK:
    <li><a class="[+classes+]" id="link[+id+]" href="[+link+]" title="[+title+]"><em>[+pagetitle+]</em><span><h2>[+longtitle+]</h2>[+content+]</span></a></li>

    Any help appreciated.

    Thanks
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 22840
      • 1,572 Posts
      For the order you could try ordering them.

      [!Ditto? &documents=`24,25,26,27,28` &tpl=`tabsmenu` &total=`5` &display=`5`&amp;sortDir=`ASC`!]

      OR

      [!Ditto? &documents=`24,25,26,27,28` &tpl=`tabsmenu` &total=`5` &display=`5`&amp;sortDir=`DESC`!]
        • 3749
        • 24,544 Posts
        Is there a reason you’re using Ditto rather than Wayfinder to show your menu?

        Wayfinder will generate your menu automatically from the directory structure of the site and will display the items in the order of their menu index settings. Your menu will always be up to date with no hand-coding of IDs.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting