Where can i edit the header?

Author Message

Timo Bahr

Tuesday 15 June 2010 1:51:18 am

Hello !

i need to add "xmlns:fb="http://www.facebook.com/2008/fbml" to the header of every page! I think its where also "http://www.w3.org/1999" is defined. Can you help me? Thanks a lot!

Robin Muilwijk

Tuesday 15 June 2010 4:30:41 am

Hi Timo,

You can add this to the page_head.tpl template file. This is where you find meta tags such as generator=ez publish (around line 50).

If for example you are using eZ Publish with the eZ Webin extension look in:

/extensions/ezwebin/design/ezwebin/templates/

You can of course also do a search for the mentioned filename.

Regards, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Timo Bahr

Tuesday 15 June 2010 6:36:59 am

Thank you sooo much!

And where can i edit the body to insert this:

<div id="fb-root">
<script>
window.fbAsyncInit = function() {
FB.init({appId: '0000000000000000', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/de_DE/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>

on every page?

Gaetano Giunta

Wednesday 16 June 2010 5:44:20 am

In the pagelayout template.

Which one you are using depends on your current settings.

Enable debug to see what file is in use for your install (eg. via the admin interface, right-hand column)

Principal Consultant International Business
Member of the Community Project Board

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 29 2025 23:49:20
Script start
Timing: Jan 29 2025 23:49:20
Module start 'layout'
Timing: Jan 29 2025 23:49:20
Module start 'content'
Timing: Jan 29 2025 23:49:20
Module end 'content'
Timing: Jan 29 2025 23:49:20
Script end

Main resources:

Total runtime0.0143 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.0045 588.1328151.2109
Module start 'layout' 0.00450.0022 739.343836.6484
Module start 'content' 0.00670.0062 775.992294.1406
Module end 'content' 0.01290.0013 870.132833.9922
Script end 0.0142  904.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.1891140.0002
Check MTime0.00106.7483140.0001
Mysql Total
Database connection0.00074.927210.0007
Mysqli_queries0.001812.943630.0006
Looping result0.00000.105310.0000
Template Total0.00107.110.0010
Template load0.00085.324810.0008
Template processing0.00021.709210.0002
Override
Cache load0.00053.665710.0005
General
dbfile0.002215.067280.0003
String conversion0.00000.065240.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