|
|
[Perlfect-search] Passing a hidden variable to Perlfect and adding to a link
Robert van Hall perlfect-search@perlfect.com
Fri, 10 Oct 2003 09:44:46 +0200
Hi Daniel,
In my search.pl I have found my $template->cast_loop:
......................................................
$template->cast_loop ("results", [{rank => $first+(++$rank),
url => $url,
highlight_link => $highlight_link,
visibleurl => $visible_url,
title => $title,
date => $date,
score => $score,
description => $desc,
size => sprintf("%.0f", $sizes_db{$_}/1000) || 1,
}]);
.........................................................
How can I add the line or lines calling the pdf seperately?
The <!--item: target--> I have to add to my search.html, I presume?
Kind regards, and have a nice weekend,
Robert van Hall
>>> daniel.naber@t-online.de 10/09/03 07:38pm >>>
On Thursday 09 October 2003 12:18, Robert van Hall wrote:
> What I would like to do is opening the pdf's in the search results in a
> new wondow, and the html's just in the same frame.
> Can this be done in Pelfect Search? And if so, how can I do it?
For me PDF files open in an external viewer, so an extra window is quite
annoying... but anyway: you can add <!--item: target--> to the template
and add another line to the cast_loop() call in search.pl. The value
assigned to the variable needs to depend on the url (does it end with .pdf
or not?). (My hint about $h{'target'} = ... was actually incorrect).
Regards
Daniel
--
http://www.danielnaber.de
_______________________________________________
perlfect-search mailing list
perlfect-search@perlfect.com
To unsubscribe, set other personal options or view the list archives please visit:
|
|