We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30497
    • 245 Posts
    I have been building a site, and testing various pages and configurations. I am now ready to start inputting real "New Documents", after having deleted the test ones I made. Now, every new document gets a number ID which shows in the left hand side menu, and mine are now starting from 11 and climbing, do to the ~10 test pages I made and deleted. How do I "reset" this document ID "counter" back to 1, or, to only count based on documents that currently exist?

    I thought it might be the "menu index" number, but that doesn’t appear to be it.
      • 22303 MODX Staff
      • 10,725 Posts
      Those are MySQL auto_increment values from the database itself. Once you’ve used and deleted an ID, it will no longer be available. There is currently not an easy way to reset this without starting from a new, basic installation.
        • 30497
        • 245 Posts
        Quote from: OpenGeek at Mar 28, 2008, 10:30 AM

        Those are MySQL auto_increment values from the database itself. Once you’ve used and deleted an ID, it will no longer be available. There is currently not an easy way to reset this without starting from a new, basic installation.

        Ok, fair enough. Is there a way to make those number *not* display in the menu though? Like currently, it shows "title (12)" or whatever. Can I change the menu display to just show "title"? I just think it would look better without all those "random" numbers, especially for the end users of the CMS.

        Thanks.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Those numbers are necessary for Wayfinder and Ditto calls as well as creating internal links. Just learn to ignore them.
            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
            • 30497
            • 245 Posts
            Quote from: sottwell at Mar 29, 2008, 06:56 AM

            Those numbers are necessary for Wayfinder and Ditto calls as well as creating internal links. Just learn to ignore them.

            Sure, I can ignore them; just thinking about the "aesthetic experience" for the website owner who will be adding articles to the site, etc. smiley
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              If you’re really set on hiding those, in the file manager/frames/tree.php around line 27 add this:
                  <style type="text/css">
                  div#treeRoot small {display: none;}
                  </style>
              

              For some reason or another putting that line in the css file doesn’t do the trick.

                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
                • 30497
                • 245 Posts
                Quote from: sottwell at Mar 29, 2008, 12:02 PM

                If you’re really set on hiding those, in the file manager/frames/tree.php around line 27 add this:
                    <style type="text/css">
                    div#treeRoot small {display: none;}
                    </style>
                

                For some reason or another putting that line in the css file doesn’t do the trick.

                Thanks, that is just great!
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Yeah, until the next time you need to know the ID of a document for some reason or another (Ditto call? Internal link [~42~] style? ) and can’t figure out what its ID is... anyway, until then, enjoy wink

                  Actually... if you have FF with Firebug, you can examine the HTML of the tree frame and get the document’s ID from that. Dig down until you find the treeRoot div, and it will contain a div for each document being displayed with the div’s ID being the document’s ID.
                    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
                    • 30497
                    • 245 Posts
                    Quote from: sottwell at Mar 30, 2008, 12:37 AM

                    Yeah, until the next time you need to know the ID of a document for some reason or another (Ditto call? Internal link [~42~] style? ) and can’t figure out what its ID is... anyway, until then, enjoy wink

                    Actually... if you have FF with Firebug, you can examine the HTML of the tree frame and get the document’s ID from that. Dig down until you find the treeRoot div, and it will contain a div for each document being displayed with the div’s ID being the document’s ID.

                    Nice tip on firebug - I checked and it works. Managing a ~small website it shouldn’t be too much of a problem. It *would* be good if I could leave the ID in the tree for my (Adminstrator) log-in, but just hide it for "content editors" or other users that are only using the interface to create documents.
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      The Tree is a bit tricky to work with; that whole list is generated on-the-fly by javascript and AJAX. You won’t catch me trying to mess around with that code. However, I imagine you could specify that the role has to be 1 for that to be displayed, since you can control the display of the entire row according to the groups.
                        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