Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: Added new fields - but the DON'T SHOW UP in add.html ...

Quote Reply
Re: Added new fields - but the DON'T SHOW UP in add.html ... In reply to
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:

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
Subject Author Views Date
Thread Added new fields - but the DON'T SHOW UP in add.html ... Kodak 2665 Aug 24, 1999, 12:44 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Bobsie 2609 Aug 24, 1999, 5:24 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2611 Aug 25, 1999, 6:05 AM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Alex 2611 Aug 25, 1999, 3:55 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2613 Aug 25, 1999, 4:08 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2611 Aug 25, 1999, 4:56 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2609 Aug 26, 1999, 12:34 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Bobsie 2611 Aug 26, 1999, 2:59 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2612 Aug 26, 1999, 3:29 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Bobsie 2610 Aug 26, 1999, 4:30 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2611 Aug 26, 1999, 6:15 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Bobsie 2610 Aug 27, 1999, 12:36 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2611 Aug 29, 1999, 10:49 AM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Eliot 2610 Aug 29, 1999, 12:09 PM
Post Re: Added new fields - but the DON'T SHOW UP in add.html ...
Kodak 2607 Aug 29, 1999, 2:28 PM