---
title: "Icongroesse bei Filelinks (Dateilinks)"
url: "https://www.typo3.net/d/26638-icongroesse-bei-filelinks-dateilinks"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","Inhaltselemente"]
created: "2005-06-29"
last_reply: "2006-07-25"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Icongroesse bei Filelinks (Dateilinks)

TYPO3 › TypoScript · 3 Antworten · gestartet 2005-06-29

## Eröffnungsbeitrag

**mathiasuhl** · 2005-06-29 · [Beitrag #1](https://www.typo3.net/d/26638-icongroesse-bei-filelinks-dateilinks/1)

Hallo!

Ist es irgentwie möglich die Iconsize bei den Downloadsymbolen im Typo3 Dateilink Element zu aendern?

Im Moment gibt Typo3.8 mit styled.content das hier aus:

<tr class="tr-even">
  <td class="csc-uploads-icon">
    <a href="uploads/media/test.exe" target="_blank">

     <img src="t3lib/gfx/fileicons/exe.gif"
     width="18" height="16" <--------------------- !! Wo kommt das her ?
     border="0" alt="" title="" />
    </a>
</td>

Meiner Auffassung nach sollte das ja in tt_content.uploads.20.linkProg in TSscript zu finden sein. Da iconCObject vom Typ IMAGE ist sollte es mit dem
file.width ja eine groesse bekommen koennen oder ?

Also dachte ich mir dieser Code sollte es machen:
tt_content.uploads.20.linkProc.iconCObject.file.width >
tt_content.uploads.20.linkProc.iconCObject.file.width = 500

Leider geht das nicht :S

Die EXT:css_styled_content/pi/class.tx_cssstyledcontent_pi1.php hat in Line 200 die Methode "render_uploads" aber ganz ehrlich ich werde nicht schlau draus :(

L260 -> $filesData[$key]['linkedFilenameParts'] =
        explode('//**//',$this->cObj->filelink($fileName, $conf
        ['linkProc.']));
        // Das sollte das ICON bauen

L266 -> foreach($filesData as $key => $fileD)	{
        // Es wird der filesData array durchlaufen nach Key

L274 -> <td class="csc-uploads-icon">
	   '.$fileD['linkedFilenameParts'][0].'
	  </td>' : '').'
        // Macht die Ausgabe

Naja wo kommen die width="18" height="16" des IMG TAGs her ?

Hat jemand vielleich ne Spur die ich verfolgen sollte ?

gruss
mathias

## Antworten

### [#2](https://www.typo3.net/d/26638-icongroesse-bei-filelinks-dateilinks/2) · alphaonline · 2005-06-30

Das wird unter /typo3/t3lib/ in der Datei class.t3lib_iconworks.php geregelt,
Die Funktion beginnt bei Zeile 100:

```php
function getIconImage($table,$row=array(),$backPath,$params='',$shaded=FALSE) {
		$str='<img'.t3lib_iconworks::skinimg backpatht3lib_iconworks::geticontablerowshadedwidth="18" height="16" trimparams="" trimparams:="" ifstristrstr="" alt="'))	$str.=' alt=" str="" />';
		return $str;
	}
```

### [#3](https://www.typo3.net/d/26638-icongroesse-bei-filelinks-dateilinks/3) · mathiasuhl · 2005-06-30

Ich habe es geändert das es keine grösse mehr bekommt aber es geht immer noch nicht :S

Ich dachte das sei eine BE funktion ...

```php
function getIconImage($table,$row=array(),$backPath,$params='',$shaded=FALSE){
           $str='<img'.t3lib_iconworks::skinimg($backpath,t3lib_iconworks::geticon($table,$row,$shaded),'') trimparams="" trimparams:="" ifstristrstr="" alt="" ifstristrstralt="" str="" />';
         return $str;
        }
```

output is immer noch

```html
<!--  Header: [begin] -->
<div class="csc-header csc-header-n3"><img src="typo3temp/GB/95762d3764.gif" alt="Freie Downloads" title="Freie Downloads" border="0" height="25" width="313" /></div>
<!--  Header: [end] -->
			
<!--  File list: [begin] -->
<table class="csc-uploads csc-uploads-1">
  <tbody><tr class="tr-even">
  <td class="csc-uploads-icon">
	<a href="uploads/media/Cosynus.exe" target="_blank"><img src="t3lib/gfx/fileicons/exe.gif" alt="" title="" border="0" height="16" width="18" /></a>
  </td>
    <td class="csc-uploads-fileName">
	<p><a href="uploads/media/Cosynus.exe" target="_blank">Cosynus.exe</a></p>
    </td>
    <td class="csc-uploads-fileSize">
	<p>821 K</p>
    </td>
  </tr>
  <tr class="tr-odd">
     <td class="csc-uploads-icon">
	<a href="uploads/media/FernwartungsClient.pdf" target="_blank"><img src="t3lib/gfx/fileicons/pdf.gif" alt="" title="" border="0" height="16" width="18" /></a>
     </td>
     <td class="csc-uploads-fileName">
	<p><a href="uploads/media/FernwartungsClient.pdf" target="_blank">FernwartungsClient.pdf</a></p>
    </td>
    <td class="csc-uploads-fileSize">
	<p>7.2 K</p>
    </td>
    </tr>
    <tr class="tr-even">
     <td class="csc-uploads-icon">
	<a href="uploads/media/ClubAccountAnCosynus.pdf" target="_blank">
        <img src="t3lib/gfx/fileicons/pdf.gif" alt="" title="" border="0" height="16" width="18" /></a>
    </td>
   <td class="csc-uploads-fileName">
	<p><a href="uploads/media/ClubAccountAnCosynus.pdf" target="_blank">ClubAccountAnCosynus.pdf</a></p>
  </td>
   <td class="csc-uploads-fileSize">
   <p>5.1 K</p>
 </td>
</tr>
</tbody></table>
<!--  File list: [end] -->
```

### [#4](https://www.typo3.net/d/26638-icongroesse-bei-filelinks-dateilinks/4) · ulrich_k · 2006-07-25

Um Dateilisten/Dateiverweise/Uploads zu formatieren brauch man render_uploads nicht zu überschreiben. Es gibt eine gute Extension: css_filelinks
<http://typo3.org/documentation/document-library/extension-manuals/css_filelinks/0.2.2/view/toc/0/>
-----
Dies ist ein mehrfach Post in mehreren Threads, damit nicht alle solange suchen müssen wie ich.

---

Quelle: „Icongroesse bei Filelinks (Dateilinks)“, typo3.net, https://www.typo3.net/d/26638-icongroesse-bei-filelinks-dateilinks
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
