Forums / Setup & design / favicon.ico

favicon.ico

Author Message

Michael Kress

Monday 10 September 2007 1:50:48 pm

Hi, I'm trying to use a custom favicon.ico and the beast doesn't show up, instead, the ez standard favicon is being displayed. :-|
I put these lines into httpd.conf:

    SetEnvIf Request_URI "^/.*favicon\.ico$" dontlog
...
        RewriteRule ^/favicon\.ico - [L]

Here, I even tried a line

        RewriteRule ^/design/standard/images/favicon\.ico - [L]

without success.

Moreover I'm using this line in pagelayout.tpl:

<link rel="Shortcut icon" href={"favicon.ico"|ezimage} type="image/x-icon" />

Of course I issued a <b>clearcache.sh --clear-all</b>

All this doesn't help. Any Ideas?
TIA! Michael

Damien Pobel

Tuesday 11 September 2007 1:11:32 am

Hi Michael,

this line

<link rel="Shortcut icon" href={"favicon.ico"|ezimage} type="image/x-icon" />

should generation something like :

<link rel="Shortcut icon" href="/design/<your_design>/images/favicon.ico" type="image/x-icon" />

So you just have to put your favicon.ico file in images folder of your design and clear template cache.

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Pascal Specht

Tuesday 11 September 2007 2:03:08 am

Hello Michael,

One thing you can do is download the firebug extension for Firefox. Then, you can see exactly what image the system tries to load. In my case, using

<link rel="Shortcut icon" href={"favicon.ico"|ezimage} type="image/x-icon" />

in my pagelayout results in:

http://www.mywebsite.com/design/standard/images/favicon.ico

Try typing this URL directly in firefox' address bar and see if the image gets shown then. If the old one still is there, use Shift+Refresh to clear Firefox cache. This should then show the new icon, unless you got some access right problems.
On IE, I've seen that the icon would eventually show up only after adding a shortcut to the page...
Hope this helps,

-Pascal

Michael Kress

Tuesday 11 September 2007 9:13:16 am

Hi, strange thing, I transferred the favicon.ico via ftp to my server. There, I did a <b>cp ~/favicon ./design/standard/images/favicon.ico</b>. The cp asked me "Overwrite?" and I pressed the [y] key on a German keyboard. But before I pressed [Alt] [Shift] accidently so [y] and [z] were swapped (because I remember that last night I had a keyboard change DE --> EN). So, the bastard (poor cp) didn't copy the file and I didn't realize that the file wasn't updated.
Sorry for the confusion. F*** Win****.
Greetings - Michael

André R.

Tuesday 11 September 2007 2:12:58 pm

Well, it would be even cleaner to put your favicon in your override design, then you don't have to think about overwriting it ( and keep overwriting it each time you update ezp ).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Frédéric Peyron

Tuesday 04 November 2008 3:45:36 pm

Hi,
I am using Ez Publish 4 and I am not able to set my favicon :-/
I put it in the /design/ezwebin_site/image directory.

link.tpl contains the line
<link rel="Shortcut icon" href={"favicon.ico"|ezimage} type="image/x-icon" />

but this line is always translated as :
<link rel="Shortcut icon" href="/design/standard/images/favicon.ico" type="image/x-icon" />

What's wrong ?

Thanks in advance for your help.

Best regards
Fred

Ivo Lukac

Tuesday 04 November 2008 11:17:19 pm

Did you clear template and override cache?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Frédéric Peyron

Wednesday 05 November 2008 12:15:28 am

Yes, I cleared all caches to be sure.

My icon is built using IcoFX and includes many icon sizes. Maybe it is the reason ?

Regards.

Ivo Lukac

Wednesday 05 November 2008 7:49:24 am

If you in HTML see this:
<link rel="Shortcut icon" href="/design/standard/images/favicon.ico" type="image/x-icon" />

then cache is not cleared "enough" :) Try delete cache files in /var dir.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Frédéric Peyron

Wednesday 05 November 2008 9:26:36 am

rm -rf var/cache
rm -rf var/ezwebin_site/cache

No change. The default ez icon is always displayed.
(my site : http://www.specis.org)

I don't understand what's wrong...

Regards

Ivo Lukac

Wednesday 05 November 2008 12:57:22 pm

Hm, something is fishy.

You placed favicon in /design/ezwebin_site/images but ezwebin is extension. Do you use ezwebin extension? If yes I would put favicon in:
/extension/ezwebin/design/ezwebin/images

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Frédéric Peyron

Wednesday 05 November 2008 3:27:08 pm

YES ! It works !
Thanks a lot.
However my installation seems not really correct because in Adminitration / Packages I find :

 	ezwebin_classes  	1.3-1 [contentclass]  	ezwebin content classes  	 Non installé
	ezwebin_design_gray 	1.3-1 [sitestyle] 	eZ Publish Website Interface design (gray) 	Importé
	ezwebin_design_blue 	1.3-1 [sitestyle] 	eZ Publish Website Interface design (blue) 	Importé
	ezwebin_design_gray 	1.3-1 [sitestyle] 	eZ Publish Website Interface design (gray) 	Importé
	ezwebin_extension 	1.3-1 [extension] 	ezwebin extension 	Non installé
	ezwebin_site 	1.3-1 [site] 	Website Interface 	Importé 

I tried to install ezwebin_classes and ezwebin_extension on my local mirror site and I lost many things (contact page, forums,...) So I hesitate to try on my real site.

Best Regards

Ivo Lukac

Thursday 06 November 2008 12:44:23 am

Yes, probably instalation was not 100% correct.
But if you don't need ezwebin classes, then don't install the package.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac