On Sat, 14 Oct 2006 17:50:05 -0600 David Gibbs <[EMAIL PROTECTED]> wrote:
> Does anyone know if it's possible to have htdig 3.1.6 handle user
> specified template values when displaying results?
>
> I'd like to be able to include specific values when displaying the
> search results on a page... such as where the search was invoked from,
> what the context of the search was, etc.
Put the values into input variables in the form and then they can be
displayed within the htdig templates through $(VAR) etc. Although the
htdig manual doesn't explicitly say so any environment variable can be
displayed this way, no matter whether it arrived from the form or was
generated on the server eg by a wrapper script.
Here's a partial example:
search.html:
<form method="get" action="/cgi-bin/htsearch.sh">
Your name: <input type="text" size="40" name="USERNAME">
htsearch.sh:
export REQUEST_TIMESTAMP=`date -u`
$HTBINDIR/htsearch
header.html:
<p>Search undertaken for $(USERNAME) on $(REQUEST_TIMESTAMP).</p>
Mike
--
Mike Causer Email - mailto:[EMAIL PROTECTED]
GPG KeyID 1C2DDA07 WWW - http://www.mikecauser.com
Flood the fen again! - Wicken Fen enlargement - http://www.wicken.org.uk
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general