Using Detailed pages. I overcame need for two Add Link include form choices by using include form with "if" statements
<%if ID=5 or ID=7%>
form data1
<%else%>
form data2
<%endif%>
This is limiting (and manual), but it works - sort of.
If I were to Use the Add Link from the Detailed Page itself or the Home page, I get the default form
I have been trying different attempts at a global without much success
sub {
my ($sth,$link,$cat);
my $vals = shift;
my $cat_db = $DB->table('Category');
$cat_db->select_options("ORDER BY Full_Name");
$sth = $cat_db->select ( { Category_Template => 'NewsItems'});
my $output;
$output .= "<href="........">Add News</a>";
return $output;
}
<%if ID=5 or ID=7%>
form data1
<%else%>
form data2
<%endif%>
This is limiting (and manual), but it works - sort of.
If I were to Use the Add Link from the Detailed Page itself or the Home page, I get the default form
I have been trying different attempts at a global without much success
sub {
my ($sth,$link,$cat);
my $vals = shift;
my $cat_db = $DB->table('Category');
$cat_db->select_options("ORDER BY Full_Name");
$sth = $cat_db->select ( { Category_Template => 'NewsItems'});
my $output;
$output .= "<href="........">Add News</a>";
return $output;
}