[TYPO3-dev] Own icon files for filelinks

Ulrich Lorenz PHZ Luzern lorenz.ulrich at phz.ch
Tue May 25 13:37:26 CEST 2010


Hi

Yes, indeed. But on the other hand inserting such a "meta information" like a file format icon as HTML instead of CSS is IMO no longer state-of-the-art. It can be easily done with CSS attribute selectors (of course not for IE6, but it doesn't break the website).

#content a[href $='.doc'] { background: url('icons/doc.jpg') no-repeat 1px 2px; padding-left: 20px; }

Keep in mind that CSS is case sensitive, so you must define .doc and .DOC if it's possible to upload file names with capitals etc.


Lorenz

> -----Ursprüngliche Nachricht-----
> Von: typo3-dev-bounces at lists.typo3.org [mailto:typo3-dev-
> bounces at lists.typo3.org] Im Auftrag von Tapio Markula
> Gesendet: Dienstag, 25. Mai 2010 13:17
> An: typo3-dev at lists.typo3.org
> Betreff: [TYPO3-dev] Own icon files for filelinks
> 
> Hi
> 
> It would be nice idea to have a config for own fileicon.
> 
> function filelink...
> 
> if($conf['fileIconPath'])
> $iconP =  $conf['fileIconPath'];
> else
> $iconP = t3lib_extMgm::siteRelPath('cms').'tslib/media/fileicons/';
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list