Gossamer Forum
Home : Products : Links 2.0 : Customization :

Help ! Categories are not auto selected.

Quote Reply
Help ! Categories are not auto selected.
It was working before, but now , when i add a link from a category page, the category isnt auto selected, although the option is enabled in Links.dfg

can someome tell me what the problem might be ?

Thank you
Quote Reply
Re: Help ! Categories are not auto selected. In reply to
Can you post the code you are using in sub site_html_add_form in site_html_templates.pl?
Quote Reply
Re: Help ! Categories are not auto selected. In reply to
Bobsie ,
Thank you for replying. here is my code :

sub site_html_add_form {
# --------------------------------------------------------
# This routine determines how the add form page will look like.
#
&html_print_headers;

my $category = shift;
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));

print &load_template ('add.html', {
Category => $category,
%globals
});
}
Quote Reply
Re: Help ! Categories are not auto selected. In reply to
I noticed that categories are selected for categories without '&' in their names.
categories that contain & , arent selected.
Quote Reply
Re: Help ! Categories are not auto selected. In reply to
Using '&' in a category name is fraught with problems as you are finding out. Another problem occurs in searches.

It is my recommendation to use '_and_' instead of '&' in category names to eliminate these problems. That is why '&' is not in Links for category names by default.