Forums / Setup & design / How to add a favicon.ico to EZ Publish site?

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

eZ debug

Timing: Jan 19 2025 03:26:34
Script start
Timing: Jan 19 2025 03:26:34
Module start 'content'
Timing: Jan 19 2025 03:26:35
Module end 'content'
Timing: Jan 19 2025 03:26:35
Script end

Main resources:

Total runtime1.4106 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 589.0859180.8125
Module start 'content' 0.00831.1616 769.8984618.7891
Module end 'content' 1.16990.2406 1,388.6875337.0547
Script end 1.4106  1,725.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3047210.0002
Check MTime0.00150.1082210.0001
Mysql Total
Database connection0.00070.052210.0007
Mysqli_queries1.322393.73372050.0065
Looping result0.00220.15952030.0000
Template Total1.368297.020.6841
Template load0.00210.151420.0011
Template processing1.366196.841320.6830
Template load and register function0.00030.017910.0003
states
state_id_array0.00130.089810.0013
state_identifier_array0.00210.149220.0011
Override
Cache load0.00190.1342340.0001
Sytem overhead
Fetch class attribute can translate value0.00270.189440.0007
Fetch class attribute name0.00140.098980.0002
XML
Image XML parsing0.00210.145540.0005
class_abstraction
Instantiating content class attribute0.00000.0015110.0000
General
dbfile0.00460.3241330.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs