Thanks Ray,

Would you believe that the attribute bActive is not documented in the
Allaire Spectra 1.5 reference for cfa_contentObjectFind? Neither is
bArchived.

However, it still doesn't work. When I look at my object in the webtop
objectType finder, the active column says no for one object, yet when I try
to pull it back with the bActive="0" attribute of the cfa_contentObjectFind,
I get zero results. If I set bActive="1", I get three results.

I'm wondering if my custom PLP and handlers are setting another attribute
that could be messing things up. When I complete my edit PLP on the object,
I use the aActivate="no" attribute in my cfa_contentObjectData tag AND I set
the attr_active property to "no". That way my custom rules won't call any
objects that haven't been activated.

Am I actually changing something that could be messing up my
cfa_contentObjectFind results?

Or should I just let all my objects become active and then use a custom
'attr_approved' property to mark that a content object has been approved?

I'm feeling pretty lost as to what the active bit actually does.

--------------------------------------------
Code from the last step of this objects PLP.
--------------------------------------------

<CFA_contentObjectData
        DATASOURCE="#request.cfa.objectstore.dsn#"
        OBJECTID="#input.objectID#"
        bActivate="no"
>
        <CFA_contentObjectProperty NAME="author"
VALUE="#TRIM(output.author)#">
        <CFA_contentObjectProperty NAME="body" VALUE="#TRIM(output.body)#">
        <CFA_contentObjectProperty NAME="dateposted"
VALUE="#TRIM(output.dateposted)#">
        <CFA_contentObjectProperty NAME="headline"
VALUE="#TRIM(output.headline)#">
        <CFA_contentObjectProperty NAME="label"
VALUE="#TRIM(output.headline)#">
        <CFA_contentObjectProperty NAME="linktext"
VALUE="#TRIM(output.linktext)#">
        <CFA_contentObjectProperty NAME="teaser"
VALUE="#TRIM(output.teaser)#">
        <CFA_contentObjectProperty NAME="url" VALUE="#TRIM(output.url)#">
        <CFA_contentObjectProperty NAME="attr_active" VALUE="no">
</CFA_contentObjectData>

-
Nate Smith, 
Lead Developer 
[EMAIL PROTECTED] 
www.doceus.com 



-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 4:28 PM
To: Spectra-Talk
Subject: RE: What's wrong with this CFA_contentObjectFind?


Remove the stProperties thing. Remove bActiveOnly.

Try:  bActive=0


=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Nate Smith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 4:11 PM
> To: Spectra-Talk
> Subject: What's wrong with this CFA_contentObjectFind?
>
>
> Hi all,
>
> I'm trying to search my content objects to see what objects are inactive.
> Then I want to give my admins a chance to make them approved and active.
> However, my cfa_contentObjectFind doesn't seem to be working. I
> get back ALL
> my objects. Not just the inactive objects. What am I missing?
>
> Thanks,
> Nate
>
> -----
>
>     <CFSCRIPT>
>         stProperties = STRUCTNEW();
>         stProperties.attr_active = 1;
>     </CFSCRIPT>
>
>     <cfa_contentobjectfind
>         dataSource = "#request.cfa.objectstore.dsn#"
>         typeID = "#url.TypeID#"
>         stProperties = "#stProperties#"
>         lPropertiesPrecedence="attr_active"
>         bActiveOnly = "0"
>         bNonArchivedOnly = "0"
>         r_stObjects = "stAllObjects"
>         >
>
>     <CFA_structSortCommonSubkeys
>         STRUCT="#stAllObjects#"
>         COMMONSUBKEY="label"
>         R_ASORTEDKEYS="aSortedByLabel"
>         >
>
>     <CFLOOP LIST="#ARRAYTOLIST(aSortedByLabel)#" INDEX="stObject">
>
> <CFOUTPUT>#EVALUATE("stAllObjects['#stObject#'].label")#</CFOUTPUT><BR>
>     </CFLOOP>
>
> -
> Nate Smith,
> Lead Developer
> [EMAIL PROTECTED]
> www.doceus.com
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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