images

Questionsimages
Bryan asked 8 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 8 years ago

For image column you can have,
$col["default"] = "<img height=50 src='http://domain.com/images/{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 4 years ago

Hi,

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 4 years ago

Yes, it’s supported in paid version.

Your Answer

18 + 14 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?