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.
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.
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.