Project

General

Profile

Actions

Feature #14667

closed

Make the thumbnail-size of filelinks chooseable

Added by Marco Geweke over 19 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2005-04-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

tslib_content_diff.txt (1.06 KB) tslib_content_diff.txt Administrator Admin, 2005-04-13 18:31
11_thumbs_size.diff (733 Bytes) 11_thumbs_size.diff Administrator Admin, 2005-04-29 14:15
Actions #1

Updated by Michael Stucki about 19 years ago

Will "100x150" also work?

Actions #2

Updated by Marco Geweke about 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.

Actions #3

Updated by Marco Geweke about 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
}

Actions #4

Updated by Bernhard Kraft about 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.

Actions #5

Updated by Marco Geweke about 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.

Actions #6

Updated by Bernhard Kraft about 19 years ago

Fixed in 3.8

Actions

Also available in: Atom PDF