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.
-
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.
-
☆ 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.
-
☆ 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.
-
☆ 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
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.
-
☆ 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.