Aki,
I see your solution, and I think I see what he is asking.
For example:
level 2
Level 3
Level 4
If an editor is an editor at level 1, his name will show up at all lower levels, including level 4,
even if level 4 has no "real" editor.
There are several solutions for this.
Define a new class of editor - Manging Editor. (and a new tag).
<%if ManagingEditor%><%ManagingEditor%><%endif%>
<%if editors%> ....
Where managing editor is defined as an editor of a category ABOVE the category you are in.
In otherwords, the Editor.CategoryID does not = current CategoryID
If <%editors_loop%> is returned, this could be checked in real time as the page is built.
If a category has no editors, <%editors%> will be blank, but <%ManagingEditors%> may or may not have a value. The Editors table would need a new flag field, such that if the editor is supposed to be the "Editor" of subcategories he's in, you would check that box, and he would show up as "Editor" not as "Managing Editor". In this case, you could put a custom message in <%if editors%>...<%else%>We need an editor!<%endif%>
This would take into account a variety of situations. It would not also depend on "depth" since some directories are only 2 or 3 levels deep, others can go to 10 or more.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.
I see your solution, and I think I see what he is asking.
For example:
Code:
Level 1 level 2
Level 3
Level 4
If an editor is an editor at level 1, his name will show up at all lower levels, including level 4,
even if level 4 has no "real" editor.
There are several solutions for this.
Define a new class of editor - Manging Editor. (and a new tag).
<%if ManagingEditor%><%ManagingEditor%><%endif%>
<%if editors%> ....
Where managing editor is defined as an editor of a category ABOVE the category you are in.
In otherwords, the Editor.CategoryID does not = current CategoryID
If <%editors_loop%> is returned, this could be checked in real time as the page is built.
If a category has no editors, <%editors%> will be blank, but <%ManagingEditors%> may or may not have a value. The Editors table would need a new flag field, such that if the editor is supposed to be the "Editor" of subcategories he's in, you would check that box, and he would show up as "Editor" not as "Managing Editor". In this case, you could put a custom message in <%if editors%>...<%else%>We need an editor!<%endif%>
This would take into account a variety of situations. It would not also depend on "depth" since some directories are only 2 or 3 levels deep, others can go to 10 or more.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.