Thanks for the help so far Ray,
I think you got what I meant about the approved items. However since you
keep referring to them as active, that leads me to another question. Are you
using the active and archived bits for approval purposes? For instance, an
object with attr_active = 0 and attr_archived = 1 is assumed to have been
approved/active at one time?
But back to my original question. When a user logs into the site with the
query string designmode=1, they have access to the containers and the
container rules. I don't want our users to be able to remove the filtering
rule I'm going to write. If it's added in the list of active rules, then I
assume that the authed user has the ability to remove it. I don't want them
to be able to do this so I need to integrate this filtering of unapproved
objects so that the user can't deactivate it (see it in the list of active
rules).
It seems best to implement this as a publishing rule although I can see
implementing this filtering through the display handler for each content
type. It's not desirable (or practical) to have to edit this for every
display handler though.
Nate
-
Nate Smith,
Lead Developer
[EMAIL PROTECTED]
www.doceus.com
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 8:52 AM
To: Spectra-Talk
Subject: RE: Setting Default Publishing Rules
It sounds like your asking two things.
1) Can I make it so that every container uses rule A?
2) I want to make sure that the rules chosen don't pick unactive obs.
Am I reading you right? If so, lets tackle the easy one first. If you want
to make sure your rules don't pick unactive obs, it's easiest to just edit
the rules execute handler to do it for you.
Now, how do you handle a default rule? There are a variety of ways. I would
suggest _not_ using the default container editor. Write your own. Have it do
(pseudo-code):
if( there isnt the only active rule in this container)
add it to the end of rules for this container
So, if you don't want to make your rules get active obs only and you want to
write a filter, that should be easy enough. I _believe_ it's a simple matter
to have rule N check to see what rules 1-N put in the container. You could
then filter out the unactive obs. Probably the hardest thing you will need
to do is ensure your rule is the last rule.
FYI, instead of creating a whole new container editor, you may just want to
modify the one out of the box.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.