On Fri, 2 Mar 2001, Patricia Lee wrote:

> Date: Fri, 02 Mar 2001 12:09:58 -0500
> From: Patricia Lee <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: Spectra-Talk <[EMAIL PROTECTED]>
> Subject: Guidance? Cfa_contentobject and using the r_stParams attribute...
> 
> Ok... I've never had to use this attribute but I'm considering it now, in
> relation to the message I posted earlier about trying to engage advanced
> security while outputting results from a cfa_contenobjectfind search.
> 
> My idea is to call a handler before the display of each item.

Um, I'm a little confused. Isn't the display done with a handler also?
That would certainly make things much easier.

> The Handler
> would invoke the cfa_userisauthorized tag (I know I can enable this
> automatically by using the bsecure attribute, but I'm unsure if this will
> work in the way that I want it.  Basically I'm a control freak, ok?).  I'd
> LOVE it if the handler could return a simple boolean variable back to the
> calling page and then this variable would cause the display to occur or
> ignore.
> 
> Should I be using r_stParams for this?

Yes.

>  How, exactly.

In your handler, do

 <cfa_handler object="this" return="return">
   [bla bla]
   <cfset return.ok = True>
 </cfa_handler>

then, if you invoke the object with r_stParams, the variable you specify
as r_stParams becomes a structure. The objectIDs that are passed through
cfa_contentobject are keys in this structure, and within those keys are
the 'return' structures that are created by cfa_handler. The easiest way
to find out how exactly this works is by dumping the return structure
after your cfa_contentobject call.

HTH

Cheers
Michiel

-- 
Michiel Boland <[EMAIL PROTECTED]>
Digital Valley Internet Professionals
Plantsoen 17, Wageningen, The Netherlands
Phone: +31 317 465555, Fax: +31 317 460276


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.

Reply via email to