CMSB resizing thumbs in admin list view

5 posts by 4 authors in: Forums > CMS Builder
Last Post: May 24, 2011   (RSS)

Re: [Deborah] CMSB resizing thumbs in admin list view

By robin - April 20, 2011

Hey Deborah,

There is no setting in v2.07 to adjust list view sizes, but maybe there should be! I'll add it to the request list.

In the meantime, If you're comfortable with some code editing send me a mail to support@interactivetools.com and I'll show you how to modify your list view.

Thanks,
Robin
Robin
Programmer
interactivetools.com

Re: [robin] CMSB resizing thumbs in admin list view

By andybarn - May 23, 2011

Hi Robin

I have a similar issue. I am happy to change the code, could you let me know what to change please

Thanks
Andy

Re: [andybarn] CMSB resizing thumbs in admin list view

By Damon - May 24, 2011

Hi Andy,

To change the default thumbnail size, when viewing a list of records involves modifying come CMS Builder code .

The file you want to modify is list_functions.php. At: /cmsAdmin/lib/menus/default/list_functions.php

Make a backup of that file first, just in case.

At (or around) line 533 there is the line:
showUploadPreview($upload, 50);

You can change the 50 to be another number, or to have it show the thumbnails actual size replace the line with this:
showUploadPreview($upload, $upload['thumbWidth']);

Note:
Any change to CMS Builder code will be overwritten in an upgrade so it is a good idea to create a custom code change text log so that you can make these changes again in the future if needed.
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] CMSB resizing thumbs in admin list view

By andybarn - May 24, 2011

Hi Damon

Thanks for that - if I want to change the height as well, could you tell me where/how I do that also.

Thanks again
Andy