Bug #26537
filelink: Property icon_thumbSize is not documented
| Status: | Resolved | Start date: | 2011-05-01 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Chris topher | % Done: | 100% |
|
| Category: | - | |||
| Target version: | 4.5.1 | |||
| Votes: | 0 |
Description
The documentation of #14667 is missing.
The stdWrap property filelink (= function filelink) has a property called icon_thumbSize.
Property: icon_thumbSize
Data type: string /stdWrap
Description:
Defines the size of the preview image.
That is the value of the "&size=" parameter in the scr attribute inside the img tag, which links to "t3lib/thumbs.php"
"icon" needs to be set for the option to take effect.
File extension of the image file must be part of "icon_image_ext_list".
"iconCObject" may not be set.
One and two values are possible, see the examples:
Examples:
icon_thumbSize = 150
icon_thumbSize = 40x40
The second produces an image tag like:
EXAMPLE STILL UNTESTED!
<img src="../../../thumbs.php?&dummy=...&file=login.gif&size=40x40&md5sum=...">
It is defined in typo3/sysext/cms/tslib/class.tslib_content.php, function filelink().
Here are excerpts of the code:
if ($conf['icon']) {
if ($conf['iconCObject']) {
...
} else {
$thumbSize = '';
if ($conf['icon_thumbSize'] || $conf['icon_thumbSize.']) {
$thumbSize = '&size=' . isset($conf['icon_thumbSize.'])
? $this->stdWrap($conf['icon_thumbSize'], $conf['icon_thumbSize.'])
: $conf['icon_thumbSize'];
}
...
$icon = 't3lib/thumbs.php?dummy=' . $GLOBALS['EXEC_TIME'] . '&file=' .
rawurlencode('../' . $theFile) . $thumbSize . $md5sum;
}
$icon = '<img src="' . htmlspecialchars($GLOBALS['TSFE']->absRefPrefix . $icon) . '"' .
$this->getBorderAttr(' border="0"') . '' . $this->getAltParam($conf) . ' />';
return $icon . $file . $size;
}
Related issues
| follows Core - Feature #14667: Make the thumbnail-size of filelinks chooseable | Closed | 2005-04-13 |
Associated revisions
Fixed bug #26537: filelink: Property icon_thumbSize is not documented
History
Updated by Chris topher almost 2 years ago
- Assignee set to Chris topher
- Target version set to 4.5.1
This option currently does not work correctly (not at all). However, I got how it is supposed to work and I will add that to the docs.
Issue #27409 created for fixing the problem with this property.
Updated by Chris topher almost 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Committed in r862.