Geoff Hutchison wrote:
> 
> At 6:03 PM +0200 5/17/01, Berthold Cogel wrote:
> >different languages, we use a attribute 'language' in our forms.
> 
> Do you have the allow_in_form attribute set?
> 
> <http://www.htdig.org/attrs.html#allow_in_form>
> 
> --
> --
> -Geoff Hutchison
> Williams Students Online
> http://wso.williams.edu/

Oh! Sorry that I didn't mention it!
Here comes my configuration file. I have set 'allow_in_form' as you can
see below. 
The attribute 'faculty' is set to the name of the institute which uses
the templates and will be displayed in the header of the results.
'language' is the language used in the templates.
The replacements in the template paths is working. But for the includes
it is ignored. If I uncomment the definition of 'language' in this
configuration, this value is used for the includes. Somehow attributes
set in the search forms are ignored in the include directive.  

-------------------------:<-------------------------------------------

# config file for ht://Dig.
# 
# .uni-koeln.de 
#
# faculty 
# 
# Suche fuer Institute, Standart-Vorlage

basedir:                        /htdig
#language:                      de

# allowed attributes
allow_in_form:  matches_per_page \
                script_name \
                faculty \
                language

# database definitions
include ${basedir}/conf/lib/db_uklan.conf

# language dependend definitions
include ${basedir}/conf/lib/locale_de.conf

# search algorithms
include ${basedir}/conf/lib/search_${language}.conf

# lists in search form
include ${basedir}/conf/lib/forms_${language}.conf

# definitions for search results
include ${basedir}/conf/lib/results_${language}.conf

document_root:                     /www/docs
template_dir:                      /suche/htdig
image_url_prefix:                  /suche/htdig/img
star_blank:                        ${image_url_prefix}/star_blank.gif
star_image:                        ${image_url_prefix}/star.gif

common_dir:                        ${document_root}${template_dir}

search_results_header:  ${common_dir}/${language}_faculty_header.html
search_results_footer:  ${common_dir}/${language}_faculty_footer.html
search_results_wrapper: ${common_dir}/${language}_faculty_wrapper.html
syntax_error_file:      ${common_dir}/${language}_faculty_syntax.html
nothing_found_file:     ${common_dir}/${language}_faculty_nomatch.html

-------------------------:<-------------------------------------------



-- 
Dr. rer. nat. Berthold Cogel                   University of Cologne
E-Mail: [EMAIL PROTECTED]                 ZAIK-US (RRZK)
Tel.:   +49(0)221/478-7020                     Robert-Koch-Str. 10
FAX:    +49(0)221/478-5568                     D-50931 Cologne - Germany

_______________________________________________
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