I'm hoping to generate a list of related articles based on the Metadata
associated with an article object.
I tried using cfa_contentObjectFind but it seems to only return articles
which match all of the supplied Keywords in the structure. I'm after a bit
more control of a partial match so that if say 2 of the keywords match I get
a returned Object.

cfa_metadataKeywordObjectFind expects a string so I haven't tried it yet.

Here's the code:

<cfa_handler object="article">

<cfset foo=structdelete(article.stkeywords, "lcategories")>
<cfa_contentobjectfind
      datasource="#request.cfa.objectstore.dsn#"
      typeid="502FBC2D-5015-11D4-B0850010A4E1C7D4"
      nmaxcount="5"
      stkeywords="#article.stkeywords#"
      r_qobjects="qObjects">

<tr bgcolor="eeeeee">
        <td width="20%"
            align="left"
            valign="top"><h3>Related Articles:</h3></td>
        <td width="80%" valign="top">
                <cfoutput query="qObjects">
                        <cfif NOT qObjects.label EQ article.label>
                                <a
href="/knowledgebase/articles/details.cfm?ObjectID=#qobjects.ObjectID#&Metho
d=displayfull">#qObjects.label#</a><br>
                        </cfif>
                </cfoutput>
        </td>
</tr>

</cfa_handler>

What am I missing?

Chris Smoother
FirmwareDesign




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