Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [assombracao] Hardcode image URL into template?

Quote Reply
Re: [assombracao] Hardcode image URL into template? In reply to
Hi

thereīs a global here and itīs almost there

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();
}

call it

<%global_name('Sample', 'picture', '10')%>

The only problem is that I canīt get the id to be automaticaly, I need to chance the '10' to the id of the record
Subject Author Views Date
Thread Hardcode image URL into template? qango 6887 Mar 17, 2005, 8:41 AM
Thread Re: [qango] Hardcode image URL into template?
assombracao 6683 Apr 24, 2005, 4:50 PM
Thread Re: [assombracao] Hardcode image URL into template?
qango 6645 May 4, 2005, 4:24 AM
Thread Re: [qango] Hardcode image URL into template?
assombracao 6603 Jun 21, 2005, 6:14 PM
Thread Re: [assombracao] Hardcode image URL into template?
assombracao 6535 Aug 23, 2005, 9:59 AM
Thread Re: [assombracao] Hardcode image URL into template?
assombracao 6543 Aug 25, 2005, 4:12 AM
Post Post deleted by qango
qango 6461 Oct 12, 2005, 8:45 AM
Post Re: [assombracao] Hardcode image URL into template?
qango 6458 Oct 12, 2005, 8:50 AM
Thread Re: [qango] Hardcode image URL into template?
mick31 6453 Oct 26, 2005, 5:02 AM
Post Re: [mick31] Hardcode image URL into template?
qango 6299 Jan 4, 2006, 4:04 AM