Forums / Setup & design / 2 questions

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

eZ debug

Timing: Jan 19 2025 05:19:30
Script start
Timing: Jan 19 2025 05:19:30
Module start 'content'
Timing: Jan 19 2025 05:19:30
Module end 'content'
Timing: Jan 19 2025 05:19:30
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.0234180.8516
Module start 'content' 0.00510.0045 769.875093.6094
Module end 'content' 0.00970.0047 863.484470.7031
Script end 0.0143  934.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001913.3256120.0002
Check MTime0.00106.7722120.0001
Mysql Total
Database connection0.00075.195310.0007
Mysqli_queries0.003322.787540.0008
Looping result0.00000.081320.0000
Template Total0.004430.710.0044
Template load0.00085.793910.0008
Template processing0.003624.837110.0036
Override
Cache load0.00053.775810.0005
General
dbfile0.00042.7377100.0000
String conversion0.00000.041530.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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