Thumbnail on admin

0

Is there any way to do this?!

alt text

asked Jan 26 at 10:34

yfilus

1

add comment
enter at least 15 characters

2 Answers

1

Yep, try 'display_helper' => 'ui/thumbnail' in your column's definition array.

And create a new helper called "ui/thumbnail", put into it the helper code from the "image/thumbnail" in this package:

http://podscms.org/packages/image-sizes/

Then modify the new helper to fit your needs, or maybe it doesn't need any modification.

answered Jan 26 at 2:44

sc0ttkclark

2936

add comment
enter at least 15 characters
0

Cool, did not know that I could use helpers is this way. You opened my eyes. I solved the problem by creating this little helper:

<?php
if($value){
  $img = wp_get_attachment_image_src($value[0]['ID'], 'thumbnail');
  echo "<img src='{$img[0]}' width='80' />";
}
?>

You saved my life, thanks!

answered Jan 27 at 10:46

yfilus

1

add comment
enter at least 15 characters