[TYPO3] Changing appearance of tt_news file list icons

Christopher Torgalson bedlamhotel at gmail.com
Mon Jun 16 17:24:47 CEST 2008


On Mon, Jun 16, 2008 at 5:19 PM, StephenBungert <stephenbungert at yahoo.de> wrote:
>
>
>
> Christopher Torgalson wrote:
>>
>>
>> Your TS makes no sense :)
>>
>> The IMG_RESOURCE ***cObject*** and the imgResource ***function*** or
>> ***data type*** are not the same thing. See the TSref for more
>> details, but this should work:
>>
>> iconCObject.5 = IMAGE
>> iconCObject.5 = {
>>    file = fileadmin/templates/images/icons/pdf.png
>> }
>>
>
> I thought not :-)
>
> I tried your code:
>
> plugin.tt_news {
>  newsFiles {
>    iconCObject = IMAGE
>    iconCObject = {
>      file = fileadmin/templates/images/icons/mail.gif
>    }
>  }
> }
>
> But I still see the original typo3 icons, the file exists and in the
> directory in the file property, but I still see the old icons.
>
> If I change it to:
>
> plugin.tt_news {
>  newsFiles {
>    stdWrap.wrap = <dd>Test|</dd
>    iconCObject = IMAGE
>    iconCObject = {
>      file = fileadmin/templates/images/icons/mail.gif
>    }
>  }
> }
>
> I see the word test before each icon, so I know it has had an effect on the
> rendering of the file links in the article. So Whyy doesn't the icon change?


Well, you copied my typo, isn't it obvious? ;-p
This may work better:

plugin.tt_news {
 newsFiles {
   iconCObject = IMAGE
   iconCObject {
     file = fileadmin/templates/images/icons/mail.gif
   }
 }
}


-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list