Page 1 of 1
Hit/Link File Type
Posted: Fri Nov 04, 2005 3:24 pm
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
Hit/Link File Type
Posted: Fri Nov 04, 2005 4:09 pm
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.
Hit/Link File Type
Posted: Fri Nov 04, 2005 8:56 pm
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
Hit/Link File Type
Posted: Fri Nov 04, 2005 11:31 pm
by mark
Yes, version 5 is better at finding titles in non-html files than 2.5 was.