Thanks for your help.  That patch does indeed work great!

The next thing we would like to do is to call one of these templates from
within PHP so that we can have other PHP functionality surrounding the
search form and results.  For example, if we have a file called search.php
that contains:

<?php
  # insert some PHP stuff here

  virtual("/path_to_template/search.aseek");

  # add more PHP code here
?>

the initial search form displays fine.  By changing the

  <form method="post" action="$A">

tag in the template (i.e. search.aseek) to:

  <form method="get" action="/search.php">

the search results are then displayed within the search.php page
correctly.  The problem comes with the links generated for things like the
Cached pages and the navigator links (e.g. Prev, Next).  The $A variable
seems to refer to the template that was used
(/path_to_template/search.aseek in this example), and the $NH variable
seems to refer to the template that was used with the appropriate query
string added on for the navigator section.

This all leads to two questions:

(1) Is there a variable that exists, or can be set, that represents the
equivalent of $A, but is the page including the search.aseek template
rather than the path to the template itself?  Our hope would be to use
this in the <form action> tag rather than $A, for the cached section, etc.

(2) Are there two individual variables that make up $NH?  For example, it
seems to be a combination of $A and a bunch of parameters.  Can that
"bunch of parameters" be accessed in a variable?  This would allow us to
use the variable from question (1) and concatenate it with the parameters
for the navigator links.

Thanks,
Brian

On Thu, 19 Sep 2002, Matt Sullivan wrote:

> Yes, in Apache you can use config such as this:
>
>   AddHandler aspseek-cgi .aseek      <- or whatever other suffix you want
>   Action aspseek-cgi /cgi-bin/s.cgi
>
> Now, any document suffixed with .aseek (which would be an ASPseek template) in
> your document root directory would be handed off internally to s.cgi e.g. take
> s.htm and place it in your doc root with a name such as s.aseek, customise it,
> then call it via http://server.name/s.aseek ... presto.
>
> One caveat emptor here is that this functionality (which was introduced in
> version 1.2.8) is broken in versions 1.2.9 and 1.2.10 but is fixed in current
> CVS so will work again when 1.2.11 is released.
>
> I've also attached the small patch which fixes this.
>
>
> Matt.
>

-- 
brian pikkaart
http://www.gospelcom.net/
gospel communications network


Reply via email to