Ok, I am not sure if this a good idea, so please read warning below.... but I just want to share this with anyone who wants it.
WARNING
***************************************************
Many bits of this were written by experts (Paul, Ivan (Yogi), webmaster and more), but edited and put together by a total amateur!! So, be very careful using on your system!!
The way it is now, it will install the column "Depth" into your category table, but will not remove this when you uninstall it. If you want it to do this, simply put the uninstall code in install.pm or delete the column from SQL.
Since I use this just for myself, I did not put this in. (I suppose I could have put the option in).
***************************************************
What it does:
Adds Directory Depth functionality to your Category table.
It has two functions:
Uses:
I use it to:
Note:
I have added a modify_category hook, to prevent editors from messing about with the 'Depth' field, in case you are wondering why you cannot change it by editing a category. Just unselect this in "edit" if you want to be able to do this.
If you find or fix any errors in it, please tell me about it.
WARNING
***************************************************
Many bits of this were written by experts (Paul, Ivan (Yogi), webmaster and more), but edited and put together by a total amateur!! So, be very careful using on your system!!
The way it is now, it will install the column "Depth" into your category table, but will not remove this when you uninstall it. If you want it to do this, simply put the uninstall code in install.pm or delete the column from SQL.
Since I use this just for myself, I did not put this in. (I suppose I could have put the option in).
***************************************************
What it does:
Adds Directory Depth functionality to your Category table.
It has two functions:
- Repair (repairs the depths for every category - you will need to run this after install)
- Stats (this shows you a table of Directory Depths with the corresponding number of categories.
Uses:
I use it to:
- see how burried my categories are becoming
- calculate advertising costs
- determine category complexity, and corresponding editor responsibility
- complex category clean up functions (deletion)
Note:
I have added a modify_category hook, to prevent editors from messing about with the 'Depth' field, in case you are wondering why you cannot change it by editing a category. Just unselect this in "edit" if you want to be able to do this.
If you find or fix any errors in it, please tell me about it.
