Custom1 and Custom2 can only be used with a Verity collection formed from a
database. Custom1 and Custom2 can be mapped to fields in the query that you
run from that database.

Also if you set TYPE="Path" the key should be equal to the document root
directory.
If you want to use a custom key set type="custom."

Although I am not sure it appears that you are trying to limit access to
certain results in certain directories based upon user privileges. I have
done something similar and there are two ways that you might look at.

1) Use CFDIRECTORY's list feature to log all files into a table and then
loop through this and setup access restrictions based upon contents of the
table (put any additional fields in the table that you like) and then index
this table. In my example, I setup an authorization level for each directory
and if the "session.auth_level"
matched "custom1" which is the authorization level for that directory then
that result was returned.

2)Use the CF_PATHINDEX function to create different collections. This is a
tag that lets you filter file extensions and subdirectories for indexing.
Then you could use CFCASE to setup a condition using some authorization
technique and search the appropriate collection.

    <CFSWITCH VALUE ="#AUTH_LEVEL#">
    <CFCASE VALUE="1" >
       <CFSEARCH COLLECTION="collection_1" ......>
    <CFCASE VALUE="1" >
       <CFSEARCH COLLECTION="collection_2" ......>
    etc...
    </CFSWITCH>

HTH


-----Original Message-----
From: J.Milks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 6:32 AM
To: CF-Talk
Subject: HELP! - Custom1 & Custom2 in Verity


This is a multi-part message in MIME format.

------=_NextPart_000_0108_01C0342F.403FBC80
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,
Back from ASP hell and immersing myself in CF again. I am a bit of a =
verity virgin, and need help with the Custom fields. I am placing files =
in different folders, which some people do and some do not have access =
to. The following id my index code:

<CFINDEX  COLLECTION=3D"#Session.intCategory#" TYPE=3D"Path" =
ACTION=3D"#txtProcess#"
       =
KEY=3D"#Application.Library##qryGetCustID.intCustomer#\#SESSION.intSite#\=
#Session.intCategory#"
        CUSTOM1=3D"#Session.intCategory#"=20
       RECURSE=3D"Yes"
    EXTENSIONS=3D".htm, .html, .cfm, .cfml, *., .doc, .wpd, .xls, .txt, =
.text, .pdf">=20

My assumption was then that when I searched, the value of CUSTOM1 would =
be the ID passed into the INDEX tag via a session variable, but it is =
blank. I need this value to compare it agains a list of IDs to which the =
current user has access, so I can display the hit or not. I know for =
sure that the session variable has a value, as it is also used =
successfully in the KEY and COLLECTION fields.

Any help appreciated.

Jim


------=_NextPart_000_0108_01C0342F.403FBC80
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Back from ASP hell and immersing myself =
in CF=20
again. I am a bit of a verity virgin, and need help with the Custom =
fields. I am=20
placing files in different folders, which some people do and some do not =
have=20
access to. The following id my index code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;CFINDEX=20
&nbsp;COLLECTION=3D"#Session.intCategory#" TYPE=3D"Path"=20
ACTION=3D"#txtProcess#"<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;KEY=3D"#Application.Library##qryGetCustID.intCustomer#\#SESSI=
ON.intSite#\#Session.intCategory#"<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;=20
&nbsp;CUSTOM1=3D"#Session.intCategory#"&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;RECURSE=3D"Yes"<BR>&nbsp;&nbsp;&nbsp;&nbsp;EXTENSIONS=3D=
".htm,=20
.html, .cfm, .cfml, *., .doc, .wpd, .xls, .txt, .text, .pdf"&gt; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My assumption was then that when I =
searched, the=20
value of CUSTOM1 would be the ID passed into the INDEX tag via a session =

variable, but it is blank. I need this value to compare it agains a list =
of IDs=20
to which the current user has access, so I can display the hit or not. I =
know=20
for sure that the session variable has a value, as it is also used =
successfully=20
in the KEY and COLLECTION fields.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any help appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jim</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0108_01C0342F.403FBC80--

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to