Hi,

I have not tried out the FileIconPlugin yet.
However, I did experiment with some css tweeks to replace the small
attachment gif (standard after each not expanded attachment link) by
an image depending on the attachment extension.

Here's the css:

a.infolink[href$='.pdf'] {
        margin-left:3px;
        padding-right:16px;
        background:transparent url(images/attachment_small.png) no-repeat 
center right;
        background:transparent url(images/attach-strip.png) no-repeat center 
right;
        background-position:0 -80px;
}
a.infolink[href$='.pdf'] img {
        display:none;
}

The .infolink class refers to the small attachment gif normally
displayed by jspwiki.  The normal img is suppressed, and replaced by a
background image. You can use the "images/attach-strip.png" which
contains many file-type icons used in the attachment tab, or any other
image you provide.

The [href$='.pdf'] css-selector will match the href attributes ending
on '.pdf'.


grtz,
     dirk



2010/8/4 Jingang Zhou <[email protected]>:
> Hi,
>
> I want to display a specified icon before accordingly file type, e.g., to 
> display a pdf icon before a pdf file name. I found the FileIcon 
> http://www.jspwiki.org/wiki/FileIconPlugin, but I do not know how to use it, 
> especially how to configure it, does anybody know?
>
> Thanks.
>
> Robin
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be 
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
> this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, 
> disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this 
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original 
> message and all copies from
> your system. Thank you.
> ---------------------------------------------------------------------------------------------------
>

Reply via email to