Hi Pugdog,
Hopefully I'm doing what Alex has given correctly....I hope I've taken the following codes and placed them in the template globals:
sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('ColumnName', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}
and then placed <img src="/images/<%Portrait%>"> where the graphic should go. I then created three other identical subroutines in my template globals, but used a new name for each one such as 'Portrait2' and so on...
I didn't see anything in the codes that would need to be altered with the exception of the names. Shouldn't this work this way?
Thanks again,
Steve
Perl Hopefull
Hopefully I'm doing what Alex has given correctly....I hope I've taken the following codes and placed them in the template globals:
sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('ColumnName', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}
and then placed <img src="/images/<%Portrait%>"> where the graphic should go. I then created three other identical subroutines in my template globals, but used a new name for each one such as 'Portrait2' and so on...
I didn't see anything in the codes that would need to be altered with the exception of the names. Shouldn't this work this way?
Thanks again,
Steve
Perl Hopefull