[opencms-dev] favicon.ico integration

Thorsten Duhn duhn at regio.uni-oldenburg.de
Wed Sep 14 07:50:50 CEST 2005


Hello,

On Tuesday, 13. September 2005 16:49, Bernd Wolfsegger wrote:
> after upload of the ico you have to set the ressourcetype in OpenCms to
> "image" (leftclick mouse on the ressourcesymbol -->> change type). by
default
> its plain, if I remeber correctly.

I have done that, too. I also made an additional entry in
"opencms-vfs.xml".

I don't think this can help anyway, because the information "image" in VFS
is
a bit more general than "image/jpeg", "image/gif" or in this case
"image/x-icon".

Regards,
Thorsten

--
On Tuesday, 13. September 2005 16:24, Thorsten Duhn wrote:
>> Hello,
>
>> I have a problem in a OpenCms 6.0 app. I want a favicon.ico
>> integrated into that site so I put an icon in root dir of the
>> site and it can be requested. This works well, but I cannot
>> get the correct mime type for this file. I added into web.xml
>> (tried both, Tomcat and "opencms/WEB-INF/web.xml"):
>
>>     <mime-mapping>
>>         <extension>ico</extension>
>>         <mime-type>image/x-icon</mime-type>
>>     </mime-mapping>
>
>> but everything I get is
>
>>     HTTP/1.1 200 OK
>>     Server: OpenCms/6.0.0
>>     Content-Type: text/html;charset=UTF-8
>>     Content-Length: 3638
>>     ...
>
>> I also looked at http://www.alkacon.com/favicon.ico and
>> http://www.opencms.org/favicon.ico, but got text mime as well.
>> Searching for "binary mime" in mailing list archive leads to
>> above solution ("Problem with binary files with IE"), but this
>> does not work for me.
>
>> Any suggestions?
>
>> Regards,
>> Thorsten





More information about the opencms-dev mailing list