⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

image-thumbnail & Twitter Bootstrap theme



pdalfarr
  • profile picture
  • Member

Posted 12 November 2013 - 10:47 AM

Hi,

 

Grocery crud 1.4's Twitter Boostrap theme proof of concept is really promising!

Looking forward to have it ready for production :)

 

Just a feedback: in 'list action', images are display full size, even if class="image-thumbnail" and height="50px" ar present in generate HTML code. Not an HTML/CSS expert, so I can't tell why.

 

Anyway, thanks a lot for this great project: amazing job!

<tr class="">
    <td class="">
        <div class="text-left">ITEM TITLE</div>
    </td>
    <td class="">
        <div class="text-left"><a href="http://mysite/images/33edc-NEWS.png" class="image-thumbnail"><img src="http://mysite/images/33edc-NEWS.png" height="50px"></a></div>
    </td>
<td class="">

Datatable theme has comparable generate code, but, in this case, images have correct (small) size  (50 px height is working I suppose)


Donna111
  • profile picture
  • Member

Posted 10 December 2013 - 02:13 AM

HI there

I'd like to suggest you refer to this code:

public int CreateThumbnail(int ImageID, int Width, int Height);

It supports to create image thumbnail.You can have a try.Hope to help you.