2013-10-03 14 views

回答

0

有沒有CSS-類,你可以使用嗎?

像這樣:

所有的
span.csc-uploads-fileName { 
    background: url("../img/icon.png") no-repeat scroll 0 0 transparent; 
    height: 40px; 
    width: 43px; 
    text-indent: -999em; 
} 
2

首先,讓從filelinks TYPO3顯示文件圖標的內容元素,你需要選擇比默認任何其他CE佈局(在外觀選項卡)。

現在,TYPO3預先帶有圖標的文件。你可能不會覺得它們太漂亮了。如果是這樣,你可以配置的圖標,Typo腳本文件路徑結束類型:

# path to the folder containing the icons 
tt_content.uploads.20.renderObj.15.file.import = fileadmin/folder/to/my/icons/ 
# wrap to indicate the file type of the icons (defaults to |.gif) 
tt_content.uploads.20.renderObj.15.file.wrap = |.png 

如果您要在不設置佈局全球顯示圖標,擺脫了相應的if語句:

tt_content.uploads.20.renderObj.15.stdWrap.if > 

當然,您也可以使用CSS選擇器來顯示正確的圖標:

a[href $='.pdf'] { background: url('icons/pdf.png') no-repeat 1px 2px; padding-left: 20px; } 
相關問題