Alex & Bobsie,
after finally adding the closing bracket(s) to the place Alex indicated and running nph-build.cgi, the content of add.html has been printed twice, with some strange error message.
Well, after removing the "print" in front of "&load_template", it's ok, but there is still the following error-message showing up at the place, where normally the AltCategories should be:
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;
my $category = shift;
# ***************************************** nonenglish modification - begin ****************
# $category ?
# ($category = qq~$category <input type=hidden name="Category" value="$category">~) :
# ($category = &build_select_field ("Category", "$in{'Category'}"));
my ($kategorie) = &kategorie_title_mb ($category);
$category ?
($category = qq~$kategorie <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
# ***************************************** nonenglish modification - end ******************
print &load_template ('add.html', {
Category => $category,
%globals
});
my $altcategories = shift;
$altcategories ?
($altcategories = qq~$altcategories <input type=hidden name="AltCategories" value="$altcategories">~) :
($altcategories = &build_select_field ("AltCategories", "$in{'AltCategories'}"));
&load_template ('add.html', {
AltCategories => $altcategories,
%globals
});
}
Do I have to define AltCategory somewhere else? Do you have any idea, where to look for it?
HELP & Thanx
after finally adding the closing bracket(s) to the place Alex indicated and running nph-build.cgi, the content of add.html has been printed twice, with some strange error message.
Well, after removing the "print" in front of "&load_template", it's ok, but there is still the following error-message showing up at the place, where normally the AltCategories should be:
Code:
sub site_html_add_form { # --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;
my $category = shift;
# ***************************************** nonenglish modification - begin ****************
# $category ?
# ($category = qq~$category <input type=hidden name="Category" value="$category">~) :
# ($category = &build_select_field ("Category", "$in{'Category'}"));
my ($kategorie) = &kategorie_title_mb ($category);
$category ?
($category = qq~$kategorie <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));
# ***************************************** nonenglish modification - end ******************
print &load_template ('add.html', {
Category => $category,
%globals
});
my $altcategories = shift;
$altcategories ?
($altcategories = qq~$altcategories <input type=hidden name="AltCategories" value="$altcategories">~) :
($altcategories = &build_select_field ("AltCategories", "$in{'AltCategories'}"));
&load_template ('add.html', {
AltCategories => $altcategories,
%globals
});
}
Do I have to define AltCategory somewhere else? Do you have any idea, where to look for it?
HELP & Thanx