Hi
Gossamer Staff send me this global, but I canīt get this work at all but Iīm sharing it anyway
Here is template global:
sub {
my ($table, $image_col, $id) = @_;
my $file = $DB->table($table)->file_info($image_col, $id) or return "ID
$id does not have a file attached.";
return $file->File_RelativePath();
}
The tag should look like:
<%global_name('Sample', 'picture', '10')%>
Hope that helps.
Bao.
Gossamer Staff send me this global, but I canīt get this work at all but Iīm sharing it anyway
Here is template global:
sub {
my ($table, $image_col, $id) = @_;
my $file = $DB->table($table)->file_info($image_col, $id) or return "ID
$id does not have a file attached.";
return $file->File_RelativePath();
}
The tag should look like:
<%global_name('Sample', 'picture', '10')%>
Hope that helps.
Bao.