Hit/Link File Type

Post Reply
davidtg
Posts: 47
Joined: Wed Aug 08, 2001 4:07 pm

Hit/Link File Type

Post by davidtg »

Before I start attempting to parce the $durl for extension is there an already existing var that will give me type file in the search hit. Like (HTML), DOC),(PDF). Or other suggestions... This is for a custom result style.

Thanks, David
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Hit/Link File Type

Post by mark »

Extension is not already split out. You'll want to be working with $Url though. $durl is an already mangled version of the url. <urlinfo split> will be helpful in breaking the url down.
davidtg
Posts: 47
Joined: Wed Aug 08, 2001 4:07 pm

Hit/Link File Type

Post by davidtg »

I guess this leads me to another question - our v2.5 webinator the $dtitle in a search result for pdf types is like: "PDF Document (SizeK) filename.pdf". I can't see any customizatons in our old scripts to get this title vs. an html type document where the $dtitle is normal document title.

Am I missing something or is this behavior changed since v2.5 - in v5?

The search results with pdfs (or Docs, PPTs) look like they are pulling a document title, if set, from within the file, much like an html doc title.

Thanks, David
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Hit/Link File Type

Post by mark »

Yes, version 5 is better at finding titles in non-html files than 2.5 was.
Post Reply