Hi!
I successfully created the table for images and in globals -> default_php I added "file_name"
sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('Image', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}
and in links.html
<img src="http://www.domain.com/...umbs/<%file_name%>"
The images in the sites are shown as broken images. <%file_name%> isn't converted to the
real file name. I guess <%file_name%> is only working when using cgi? What can I do to get
it working with php?
sun
I successfully created the table for images and in globals -> default_php I added "file_name"
sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('Image', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}
and in links.html
<img src="http://www.domain.com/...umbs/<%file_name%>"
The images in the sites are shown as broken images. <%file_name%> isn't converted to the
real file name. I guess <%file_name%> is only working when using cgi? What can I do to get
it working with php?
sun