ok i guess i would need to do 2 trims?
<CFPARAM NAME="MonoNum1" DEFAULT="#RemoveChars(href, 1, 10)#">
<CFPARAM NAME="MonoNum" DEFAULT="#GetToken(MonoNum1, 4, "/")#">
Sometimes it works, but some times not?
any help here would be great!
<CFOUTPUT query="GetResults" maxRows="#Form.MaxRows#">
<TR bgcolor="#IIf(CurrentRow Mod 2, DE('FFFFFF'), DE('FFFFCF'))#"
align="left" valign="top">
<!--- current row information --->
<TD>#Evaluate(Form.StartRow + CurrentRow - 1)#</TD>
<!--- score --->
<TD><I>#NumberFormat(Round(Score * 100))#%</I> </TD>
<!--- file name with the link returning the file --->
<TD>
<cfif Custom2 IS NOT "">
<B>DB :: <a href="#Custom2##CUSTOM1#&Criteria=#Criteria#">
#Criteria#</A></B></TD>
<CFELSE>
<CFIF UseURLPath>
<!--- URL parameter from cfsearch contains URL path info --->
<CFSET href = Replace(URL, " ", "%20", "ALL")>
<CFELSE>
<!--- ... else use OpenFile to return the file --->
<CFSET href =
"search_VOpenFile.cfm?serverFilePath=#URLEncodedFormat(Key)#">
</CFIF>
<CFIF href CONTAINS "Monograph/">
<!---
I need to grab the directory name after Monograph?
How would i use a wild card to grab the name to set a param?
--->
<CFPARAM NAME="MonoNum1" DEFAULT="#RemoveChars(href, 1, 10)#">
<CFPARAM NAME="MonoNum" DEFAULT="#GetToken(MonoNum1, 4, "/")#">
<A
HREF="http://127.0.0.1/Inhouse/Monograph/default.asp?monograph=#MonoNum#">DB
* #MonoNum#</A>
<CFELSE>
<A href="#href#">#GetFileFromPath(Key)#</A>
</CFIF>
</CFIF>
</TD>
-paul
Web Developer, NBBJ
Work: [EMAIL PROTECTED]
614 241-3534
fax: 614 485-5534
Home: [EMAIL PROTECTED]
614 449-1681
> icq: 47658358
>
> -----Original Message-----
> From: Paul Ihrig [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 10:00 AM
> To: CF-Talk
> Subject: RE: Verity :: ASP :: Help Needed Badly
>
> how do i get the directory name after Monograph?
> i through in the % because i think its a wild card?
> how do i grab the name for my cfparam?
>
> thank you
> -paul
>
> <CFIF href CONTAINS "http://127.0.0.1/Inhouse/Monograph/%900408.00/">
> <!---
> I need to grab the directory name after Monograph?
> How would i use a wild card to grab the name to set a param?
> --->
> <CFPARAM NAME="MonoNum" VALUE="???The Number after Monograph????">
> <A
> HREF="http://127.0.0.1/Inhouse/Monograph/default.asp?monograph=#MonoNum#">
> #M
> onoNum#</A>
> <CFELSE>
> <A href="#href#">#GetFileFromPath(Key)#</A>
> </CFIF>
>
> -paul
>
> Web Developer, NBBJ
> Work: [EMAIL PROTECTED]
> 614 241-3534
> fax: 614 485-5534
>
> Home: [EMAIL PROTECTED]
> 614 449-1681
>
> > icq: 47658358
> >
> > -----Original Message-----
> > From: Paul Ihrig [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, February 26, 2001 9:31 AM
> > To: CF-Talk
> > Subject: RE: Verity :: ASP :: Help Needed Badly
> >
> > ok another question.
> > on my search result for 900408 of the asp app in verity
> >
> > i get this link. which is just the dumb text file
> >
> http://127.0.0.1/Inhouse/Monograph/900408.00/Project%20Descriptions/projec
> > t_
> > data.txt
> >
> > instead of seeing the text file on the link in want to force it to
> >
> > http://127.0.0.1/Inhouse/Monograph/default.asp?monograph=900408%2E00
> >
> > so is there a way to write a CFIF statment that if the resulting file is
> > in
> > the subdirectory Monograph,
> > then grab the next directory down name & append it to the resulting url?
> >
> > i would have to put this in the results page for the Verity search.
> >
> > again any help would be great!
> >
> > -paul
> >
> > Web Developer, NBBJ
> > Work: [EMAIL PROTECTED]
> > 614 241-3534
> > fax: 614 485-5534
> >
> > Home: [EMAIL PROTECTED]
> > 614 449-1681
> >
> > > icq: 47658358
> > >
> > > -----Original Message-----
> > > From: Paul Ihrig [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, February 26, 2001 8:41 AM
> > > To: CF-Talk
> > > Subject: Verity :: ASP :: Help Needed Badly
> > >
> > > Good morning.
> > > i need some help.
> > > i know little to nothing about asp.
> > >
> > > i have just set up verity on 5 db apps & our intranet, which is
> mostley
> > > CF.
> > > but there is one thing there i am not sucessful with.
> > >
> > > it is an ASP app writen by our west coast group.
> > > it uses includes.
> > >
> > > it basically lets users set up there own site based on project number.
> > > no db, just static directories, txt files & images.
> > > they copy the info into there directorys & instant page.
> > >
> > > i cant search on these though?
> > > all the content is in seperat text files.
> > >
> > > the main asp page is what pulls these directories in to make links.
> > >
> > > can any one who knows asp & verity pleaase help me learn how to do
> this
> > > right?
> > > i told my maneger that i didnt write it & he should get the west coast
> > to
> > > solve there own problems, but this is not an option for me now.
> > >
> > > i want to do this right, then find another job!
> > > can send the source asp code.
> > >
> > >
> > > -paul
> > >
> > > Web Developer, NBBJ
> > > Work: [EMAIL PROTECTED]
> > > 614 241-3534
> > > fax: 614 485-5534
> > >
> > > Home: [EMAIL PROTECTED]
> > > 614 449-1681
> > >
> > > > icq: 47658358
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists