Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [assombracao] Real Image path please

Quote Reply
Re: [assombracao] Real Image path please In reply to
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.


Last edited by:

TheStone: Aug 25, 2005, 9:25 AM
Subject Author Views Date
Thread Real Image path please assombracao 4024 Aug 23, 2005, 10:23 AM
Thread Re: [assombracao] Real Image path please
assombracao 3878 Aug 24, 2005, 1:01 PM
Thread Re: [assombracao] Real Image path please
assombracao 3827 Aug 25, 2005, 4:11 AM
Post Re: [assombracao] Real Image path please
assombracao 3757 Aug 26, 2005, 12:01 PM