Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Aki] Encouraging smaller category editor applications

Quote Reply
Re: [Aki] Encouraging smaller category editor applications In reply to
Aki,

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.
Subject Author Views Date
Thread Encouraging smaller category editor applications Demolitioncrew 1680 Aug 23, 2002, 1:31 PM
Thread Re: [Demolitioncrew] Encouraging smaller category editor applications
rayhne 1662 Aug 23, 2002, 1:55 PM
Thread Re: [rayhne] Encouraging smaller category editor applications
Demolitioncrew 1645 Aug 23, 2002, 1:57 PM
Thread Re: [Demolitioncrew] Encouraging smaller category editor applications
rayhne 1638 Aug 23, 2002, 2:09 PM
Post Re: [rayhne] Encouraging smaller category editor applications
Demolitioncrew 1634 Aug 23, 2002, 2:14 PM
Thread Re: [Demolitioncrew] Encouraging smaller category editor applications
Aki 1639 Aug 23, 2002, 2:15 PM
Post Re: [Aki] Encouraging smaller category editor applications
pugdog 1646 Aug 23, 2002, 3:18 PM