2 questions

Author Message

Jonas Brown

Wednesday 13 October 2004 9:06:34 am

Hi,

I am trying to find out how to add a banner to the top of my pages.

I also want to incorporate some external php code - is there a way i can do this?

Many thanks

Lazaro Ferreira

Wednesday 13 October 2004 12:26:04 pm

Hi,

1) It depends on how do you want to do it ; do you want to hard code it ?, do you want it dynamic ?, so you can change it via ezp admin ?

Take a look at ezp tutorial (search docs here at htttp://ez.no ), on how to customize pagelayout.tpl

2) The way to add php external code is using EZP extension mechanism, take a look here :

http://ez.no/ez_publish/documentation/development/extensions/introduction_to_extensions

there is also more information in forum threads, but you will need to research it

Lazaro
http://www.mzbusiness.com

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 18 2025 22:36:44
Script start
Timing: Jan 18 2025 22:36:44
Module start 'layout'
Timing: Jan 18 2025 22:36:44
Module start 'content'
Timing: Jan 18 2025 22:36:44
Module end 'content'
Timing: Jan 18 2025 22:36:44
Script end

Main resources:

Total runtime0.0151 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.0061 587.7891152.6094
Module start 'layout' 0.00610.0031 740.398439.4063
Module start 'content' 0.00920.0043 779.804789.0781
Module end 'content' 0.01350.0016 868.882830.3047
Script end 0.0151  899.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.7849140.0002
Check MTime0.00127.8978140.0001
Mysql Total
Database connection0.00117.186510.0011
Mysqli_queries0.002717.911830.0009
Looping result0.00000.126410.0000
Template Total0.00138.610.0013
Template load0.00074.713110.0007
Template processing0.00063.851710.0006
Override
Cache load0.00053.235310.0005
General
dbfile0.00031.877680.0000
String conversion0.00000.086940.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