Open holmbergius opened 14 years ago
This code snippet does it. Can I contribute it?
foreach ($data as $id => $hits) {
$pos = strpos($id,".pdf");
if($pos === false) {
echo '<a href="'.ml($id).'" title="" class="wikilink1">'.hsc($id).'</a>:';
}
else {
$pdfstring="ml($id)"+"?search="+$QUERY;
echo '<a href="'.ml($id).'#search='.$QUERY.'" title="" class="wikilink1">'.hsc($id).'</a>:';
}
That's in action.php.
Can the plugin open PDF results with search terms highlighted? This should be simply a matter of passing the search results into the link for the PDF URL. The format is documented here:
http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
Thanks! Jason