Ok so i was starting the planning of the release addon and i thought we need some way in a forum to find out what « level » it is (how many sub/parent forums with the same type are). i started writing some code for this and i realized it is not a simple thing but needs some discussion.
My idea is that while viewing a forum/thread you can get the forums level with the level being the number of parent forums with the same type above it plus 1 (i.e. if we had:
Forum 1 (Type: Blah; Level 1)
— Forum 2 (Type: Blah; Level 2)
—- Forum 3 (Type: Default; Level 1)
Forum 4 (Type: Blah; Level 1)
). This seemed good to me and then on say the release engine a forum with level X would have a template of X. But then i was thinking about more and i realized say that that would not work because we do not know the depth of that forum.
So what do you think the best approach would be?