This topic is locked

Displaying Images in Custom View

4/3/2009 8:37:44 AM
PHPRunner General questions
S
Shankar author

Hello.

I have a custom view, as follows (simplified version)

select

master_table.image

from detail_table

join detail_table.foreign = master_table.primary
The image column is text containing an image name (eg. 1.gif, 2.gif etc.)
In Visual Editor I set view as files with directory files/ (this itself is a bit tricky, as it seems the Edit As overdides everything (even though this type of view cannot be edited directly!).
However, the output doesn't work. Instead of the images, the fields show as a hyperlink (eg. 1.gif, 2.gif etc.)
These hyperlinks themselves give an error:

PHP Fatal error: Call to undefined function mlang_message() in /.........../include/commonfunctions.php on line 1136
I am totally lost.

Shankar

Sergey Kornilov admin 4/3/2009

Set 'View as' type to Image.
If you see any errors post your application to Demo Account (use 'Demo Account' button on the last screen in program). Then open a ticket at http://support.xlinesoft.com sending your Demo Account URL for investigation.

S
Shankar author 4/4/2009

Set 'View as' type to Image.


Thank you - that worked perfectly (had to add files/ in URL prefix).
Shankar