[TYPO3] Changing appearance of tt_news file list icons

StephenBungert stephenbungert at yahoo.de
Tue Jun 17 12:47:12 CEST 2008


Hi all.

Incase anyone wants to do the same, I have now managed to change the file
icons like this:

## Crop tag until the last slash in the src attribute - this leaves the
filetype still (important)
plugin.tt_news.newsFiles.stdWrap.substring = 49

# Then re-wrap the cropped tag with a path to the icon
plugin.tt_news.newsFiles.stdWrap.innerWrap = <img
src="fileadmin/templates/fmf/images/icons/fileicons/ |

Send it through the HTML parser to alter other attributes, like for example,
width and height.
plugin.tt_news.newsFiles.stdWrap.HTMLparser = 1
plugin.tt_news.newsFiles.stdWrap.HTMLparser.tags.img.fixAttrib.width.set =
12
plugin.tt_news.newsFiles.stdWrap.HTMLparser.tags.img.fixAttrib.height.set =
12

The fileicons/ folder is a copy of that found here:
typo3\sysext\cms\tslib\media\fileicons

This is where the original icons were. I reference the same icons in my new
folder:
fileadmin/templates/fmf/images/icons/fileicons/

Which I can now edit to suit the sites design.


-----
-- 
Stephen Bungert
-- 
View this message in context: http://www.nabble.com/Changing-appearance-of-tt_news-file-list-icons-tp17865196p17882296.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list