According to Doruk Fisek:
>  I couldn't get the allow_in_form attribute to. As I interpret the documents,
> in htdig.conf i put up,
> 
> allow_in_form: the_variable
> 
> and it should show up in search results as, $(THE_VARIABLE) but it doesn't. Is
> there something I am missing?

How about a definition for the value of "the_variable"?  The allow_in_form
attribute establishes a three-way relationship between a CGI input
parameter, a cofig attribute, and a template variable.  So, when you
tell it to use "the_variable" in this way, what happens is an input
parameter like...

  <input type="hidden" name="the_variable" value="myvalue">

will set the config attribute the_variable to the value "myvalue",
overriding any value that the_variable may have been given in the config
file.  Then, in your template files, any use of $(THE_VARIABLE) will get
replaced with the current value of the config attribute the_variable,
which in this case will be "myvalue" (without the quotes).  So, you need
to define a value for the_variable, either in your search form or in your
config file, or else any use of $(THE_VARIABLE) in your template file will
just get an empty string (the value of an attribute that's never set).

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to