[TYPO3-english] Filelinks in pure TS

Kay Strobach typo3 at kay-strobach.de
Tue Nov 22 14:54:56 CET 2011


Here is my current solution:

The table around can't be removed with TS currently, but it can be
formated with TS

tt_content.uploads.20.itemRendering.20.1 >
tt_content.uploads.20.itemRendering.20.2 >
tt_content.uploads.20.itemRendering.20 {
	2 = TEXT
	2 {
		wrap = <li><a href="|
		data = register:path
	}
	3 = TEXT
	3 {
		data = register:filename
		wrap = |">[download *.
	}
	5 = TEXT
	5 {
		data = register:filename
		substring = -3,0
	}
	6 = TEXT
	6{
		data= register:fileSize
		wrap = ,&nbsp;|
		bytes = 1
		bytes.labels =  B | KB| MB| GB
	}
	7 = TEXT
	7{
		value= ]</a></li>
	}
	debug=1
}

Regards
Kay

-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answere was usefull: https://flattr.com/profile/kaystrobach


More information about the TYPO3-english mailing list