[TYPO3] css styled filelinks

Bas van der Togt bas.vander.togt at efocus.nl
Thu May 3 16:43:20 CEST 2007


Hello list,

I use 'css styled filelinks' and it works great.
But i want to define several layouts.
How can i do this?

cheers,
Bas

This is my setup:
tt_content.uploads.20 >
tt_content.uploads.20=USER
tt_content.uploads.20{
   userFunc=tx_cssfilelinks->renderFileLinks
   fileList{
     field=media
     path=uploads/media/
     '.$tempAllowReadFromPath.'
   }
	
   description.field=imagecaption
   description_ifElementEmpty=
   additionalClass {
     image=bmp,gif,ico,jpg,png,tif,psd
     video=wmv,avi,asf,mpg,mov,mpeg
     audio=mp3,wav,mid
   }
   classes {
     addFirst=0
     addLast=0
     addOdd=0
     addEven=0
     ext.prefixIfFirstNumber=
   }
   layout {
     global=<ul id="downloadlist">###FILE###</ul>
     file=<li><a href="###URL###">###DESCRIPTION###</a></li>
     fileSize {
       layout=(###SIZE### ###SIZEFORMAT###)
       char=lower
       format=auto
       desc=b|kb|mb
       round=2
     }
     hideNotProcessedMarkers=1
   }
   linkProc {
     target = _blank
     jumpurl = {$styles.content.uploads.jumpurl}
     jumpurl.secure = {$styles.content.uploads.jumpurl_secure}

     removePrependedNumbers = 1
     alternativeIconPath=fileadmin/templates/siteimg/
     iconCObject = IMAGE
     iconCObject.makeThumbs=0
     iconCObject.file.import.data = register : ICON_REL_PATH
     iconCObject.file.width = 150
   }
   stdWrap {
     editIcons = tt_content: media, layout, filelink_size
 
editIcons.iconTitle.data=LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.filelist
     prefixComment = 2 | File list:
   };
}


More information about the TYPO3-english mailing list