Hi all, I had use the Alt Catorgie mod with 1.1 and was deturmen to get it to work with 2.0 beta 3 yet while doing the mod I found that Alex had alreay had this about 95% complete, anyways here's how incase ya what the rest of the code,
First in Links.def add a feild called $db_alt
Now open db_utilities.pl find
sub build_select_field { under this you will see
if (! exists $db_select_fields{$column}) {
$db_select_fields{$db_cols[$db_category]} = $db_select_fields{'Mult-Related'} = join (",", &category_list);
}
Add this right under it,
if (! exists $db_select_fields{$column}) {
$db_select_fields{$db_cols[$db_alt]} = $db_select_fields{'Mult-Related'} = join (",", &category_list);
}
Now find sub build_html_record_form { under this you will see
# Go through a little hoops to only load category list when absolutely neccessary.
if ($in{'db'} eq 'links') {
exists $db_select_fields{$db_cols[$db_category]}
or ($db_select_fields{$db_cols[$db_category]} = join (",", &category_list));
}
Add this under it,
if ($in{'db'} eq 'links') {
exists $db_select_fields{$db_cols[$db_alt]}
or ($db_select_fields{$db_cols[$db_alt]} = join (",", &category_list));
}
That's it! Alex aready had the rest done,
Thanks
Joey
------------------
Links is HOT! Get it and you will LOVE IT!
First in Links.def add a feild called $db_alt
Now open db_utilities.pl find
sub build_select_field { under this you will see
if (! exists $db_select_fields{$column}) {
$db_select_fields{$db_cols[$db_category]} = $db_select_fields{'Mult-Related'} = join (",", &category_list);
}
Add this right under it,
if (! exists $db_select_fields{$column}) {
$db_select_fields{$db_cols[$db_alt]} = $db_select_fields{'Mult-Related'} = join (",", &category_list);
}
Now find sub build_html_record_form { under this you will see
# Go through a little hoops to only load category list when absolutely neccessary.
if ($in{'db'} eq 'links') {
exists $db_select_fields{$db_cols[$db_category]}
or ($db_select_fields{$db_cols[$db_category]} = join (",", &category_list));
}
Add this under it,
if ($in{'db'} eq 'links') {
exists $db_select_fields{$db_cols[$db_alt]}
or ($db_select_fields{$db_cols[$db_alt]} = join (",", &category_list));
}
That's it! Alex aready had the rest done,
Thanks
Joey
------------------
Links is HOT! Get it and you will LOVE IT!