Image thumbnail in LIST PAGE
- Single Page
Posted 14 November 2011 - 01:27 AM
[color=#333333][font=arial, sans-serif][size=4]on the "[/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]LIST PAGE"[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]it is[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]possible to[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]display a[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]thumbnail[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]of an image[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]instead of its[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]name?[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]if yes [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]like[/size][/font][/color] i can [color=#333333][font=arial, sans-serif][size=4]do?[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]Thank you.[/size][/font][/color]
Posted 19 November 2011 - 22:12 PM
[color=#333333][font=arial, sans-serif][size=4]Hello to all forum[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]on the "[/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]LIST PAGE"[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]it is[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]possible to[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]display a[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]thumbnail[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]of an image[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]instead of its[/size][/font][/color] [color=#333333][font=arial, sans-serif][size=4]name?[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]if yes [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]like[/size][/font][/color] i can [color=#333333][font=arial, sans-serif][size=4]do?[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]Thank you.[/size][/font][/color]
[/quote]
+1 !
please could it be possible to have a callback for upload file type columns ?
and the same for add/update pages, for example so that we could create or display thumbnails
besides the upload file form ?
Posted 25 March 2012 - 09:44 AM
Posted 26 March 2012 - 06:02 AM
here is an example for you:
$crud->callback_column('news_images', array($this, '_transformIMG'));
function _transformIMG($value, $row) {
$img = "<div class='thumbnail span1'><img src='" . base_url('img/news_images') . "/" . $value . "' /></div>";
return($img);
}
I haven't tried to make the upload form show thumbnail - that is just for the column to display a thumb instead of the name of the image
Posted 26 March 2012 - 06:16 AM
Posted 18 April 2012 - 17:43 PM
Posted 06 June 2012 - 12:11 PM
$crud->callback_column('news_images', array($this, '_transformIMG'));
function _transformIMG($value, $row) {
$img = "<div class='thumbnail span1'><img src='" . base_url('img/news_images') . "/" . $value . "' /></div>";
return($img);
}
hi grocery CRUD Expert
[color=#666600]This is great for table page only. How to view the image in edit and add page do you any idea?[/color]
Posted 18 June 2012 - 13:51 PM
Posted 09 August 2012 - 15:56 PM
[quote name='threestatedrive' timestamp='1334771019' post='1306']
if i used a callback_edit_field to display the image on the edit page, how do i maintain the delete link?
[/quote]
Posted 12 August 2012 - 22:49 PM