Bryan asked 5 years ago

I have a table which has addresses of images, i.e. pictures/2014/08/picture01.jpg
How can I display the picture in a column? I've tried the render as image column attribute but nothing displays, just the value stored in the table field.

2 Answers
Abu Ghufran answered 5 years ago

For image column you can have,
$col["default"] = "<img height=50 src='{images_path_field}'>";

On rendering, it would replace the {field} with the value of that row.

Refer demos/appear/image.php for code sample.

Vaclav answered 2 weeks ago


In demos/appear/image.php is nothing;

$col = array();
$col[“title”] = “Bild”;
$col[“name”] = “Bild”;
$col[“width”] = “20”; // width on grid
$col[“sortable”] = false; // this column is not sortable
$col[“search”] = false; // this column is not searchable
$col[“editable”] = true;
$col[“link”] = “http://localhost/kalkulation/?Bild={Bild}”;
$col[“linkoptions”] = “target=’_blank'”; // extra params with <a> tag
$col[“default”] = “<img height=50px src=’http://localhost/kalkulation/Images/{Bild}’>”; //img
$cols[] = $col;

My images are in http://localhost/kalkulation/Images folder, but they do not render as image, please help !

I have free version…. should I buy pro?

Thank you Vaclav

Abu Ghufran Staff replied 2 weeks ago

Yes, it’s supported in paid version.

Your Answer

13 + 11 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!