Don't use GetFileFromPath(). -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/
> -----Original Message----- > From: Jeff Small [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 11:03 AM > To: CF-Talk > Subject: Verity Indexing Help...Can't I just shoot my computer? > > > Okay, lemme see if I can put this correctly into words... > > Lemme preface this by saying, I've got the collection done, and the > collection is working great, and I've also tried the macromedia > forums with > no luck...so you really are my only hope, Obi Wans.... > > Let's say I've indexed "Foo". > > Foo contains subdirectories "bar1", "bar2", and "bar3" > > I've set Foo's index to "index recursive directories" > > So let's say, this is what's contained in those directories. > > Foo/index.cfm > Foo/page2.cfm > Foo/Bar1/index.cfm > Foo/Bar2/index.cfm > Foo/Bar2/page2.cfm > Foo/Bar3/index.cfm > Foo/Bar3/page2.cfm > Foo/Bar3/page3.cfm > > Now, after searching my collection, the following pages match: > > Foo/page2.cfm > Foo/Bar2/page2.cfm > Foo/Bar3/index.cfm > Foo/Bar3/page3.cfm > > all my links, using: > > <CFSET FileName=GetFileFromPath(Key)> > <A HREF="#Filename#">View</A> > > return the following: > <A HREF="page2.cfm">View</A> > <A HREF="page2.cfm">View</A> > <A HREF="index.cfm">View</A> > <A HREF="page3.cfm">View</A> > > How do I determine the directory? In my collection, I've got the > collection > "url" set to http://www.thedomain.com which I assumed would > return the root > for the site which "Foo" is the root directory... > > How do I accomplish this? I know it's something I'm overlooking. > Whenever I > use JUST "key" I get the correct path all the way down (into "Bar3" for > example) but I just can't grab that directory ("Bar3") for some reason. > > Was this clear? Any help is super appreciated. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4