Feature #14667
closedMake the thumbnail-size of filelinks chooseable
0%
Description
The filelink-element is abled to render nice little thumbnails of image files, but there is no simple configuration option to set a different size for these thumbnails than the default "56x56". Although you can replace the default-icon with a custom-cObject, i prefered this alternative:
I patched two lines in tslib_content, so that you can change the size of the thumbnails in the ts-setup of the filelink-element.
Example:
1.filelink {
icon_thumbSize = 100
}
This will render all image-thumbnails in max 100x100 pixels.
The unified diff is attached as file. I would like to see it in 3.8.0 final if possible :)
(issue imported from #M975)
Files
Updated by Marco Geweke over 19 years ago
Yes, "100x150" will also work. Then the image will be max 150 pixels high and max 100 pixels wide. The aspect ratio will be preserved.
Updated by Marco Geweke over 19 years ago
Here is my example for changing the size of the icons in a filelink-content-element with "Layout 3" chosen:
tt_content.uploads.20.3.split.1.filelink {
icon_thumbSize = 150x100
}
Updated by Bernhard Kraft over 19 years ago
2 MediaMarco:
With your TS:
tt_content.uploads.20.3.split.1.filelink {
icon_thumbSize = 150x100
}
I can't change the size. When I set the Layout to 3 I always get into the:
if ($conf['iconCObject']) {
$icon = $this->cObjGetSingle($conf['iconCObject'],$conf['iconCObject.'],'iconCObject');
} else {
part of the code in question ....
Don't know which TS you have set so filelink icons get outputted differently ...
In my case iconCObject is set to IMAGE.
I would really appreciate any further TS so I can test this.
Updated by Marco Geweke over 19 years ago
I don't have any special setup. Only content (default) and the TS above. I don't set any iconCObject, so 'if ($conf['iconCObject'])' returns false.