How to add a favicon.ico to EZ Publish site?

Author Message

Eivind Marienborg

Thursday 29 July 2004 8:55:18 am

I've tried placing a favicon.ico in the root (www.mysite.com/favicon.ico), but EZ doesn't allow the browser to read this, and gives a Kernel-error.

How can I then add a favion to my EZ-site?

Paul Forsyth

Thursday 29 July 2004 9:13:07 am

Try something like this:

<head>
<link href={"favicon.ico"|ezimage} rel="Favourite icon" />
</head>

where 'favicon.ico' is located in design/<your-site>/images.

paul
--
http://www.visionwt.com

Eivind Marienborg

Thursday 29 July 2004 9:23:16 am

Adding

<link REL="icon" HREF={"icon.png"|ezimage} TYPE="image/png">

worked like a charm. Thanks lots! :D

Tony Wood

Thursday 29 July 2004 9:41:50 am

You could still keep the 'ico' file by adding ico to the rewrite ignore list.
Your rewrite rule would look something like this in eZ 3.4

 RewriteRule !\.(gif|jpe?g|png|css|ico|js|jar|html)|var(.+)storage.pdf(.+)\.pdf$ /my/path/index.php

This might be preferable as I am not sure if all browsers support 'png' as favicons.

--tony
http://www.visionwt.com

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Eivind Marienborg

Thursday 29 July 2004 9:49:55 am

I've grep'ed through the entire site, but can't find one single RewriteRule.. Where should it be located?

Tony Wood

Thursday 29 July 2004 10:01:59 am

This setup will be in your apache config. So you might want to ask your hoster to show you the apache conf for your site and add this too it.

I am not sure how you are hosting so I cannot give any specific details sorry.

--tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 06:02:47
Script start
Timing: Jan 19 2025 06:02:47
Module start 'layout'
Timing: Jan 19 2025 06:02:47
Module start 'content'
Timing: Jan 19 2025 06:02:47
Module end 'content'
Timing: Jan 19 2025 06:02:47
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.2891152.6406
Module start 'layout' 0.00470.0041 741.929739.4766
Module start 'content' 0.00880.0084 781.406393.4922
Module end 'content' 0.01720.0023 874.898438.3047
Script end 0.0195  913.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.6780140.0002
Check MTime0.00115.6697140.0001
Mysql Total
Database connection0.00062.812910.0006
Mysqli_queries0.002714.038930.0009
Looping result0.00000.195110.0000
Template Total0.00189.110.0018
Template load0.00105.119810.0010
Template processing0.00083.938310.0008
Override
Cache load0.00073.763910.0007
General
dbfile0.002211.133380.0003
String conversion0.00000.054940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs