custom script

Author Message

me andreia

Sunday 10 December 2006 10:17:15 pm

How can I add my own script/tool as a link into ez publish system? Let's say I have a database and a php script that interogates it and shows the desired results.
I saw C G already asked this question, no reply yet.

Pleasec advice.

Claudia Kosny

Wednesday 13 December 2006 11:12:10 am

Hi

This depends on what you want to do exactly. If you want to use your custom data in other, existing templates, writing some template operators might be useful. This way you can fetch and process data from wherever you want and include it anywhere.
If you want to write your own templates which do not depend on any node or object in the content tree, a module might be more interesting for you.

Start with these links:
http://ez.no/ezpublish/documentation/development/extensions/template_operator
http://ez.no/ezpublish/documentation/development/extensions/building_an_ez_publish_module

Claudia

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 16:09:54
Script start
Timing: Jan 18 2025 16:09:54
Module start 'layout'
Timing: Jan 18 2025 16:09:54
Module start 'content'
Timing: Jan 18 2025 16:09:55
Module end 'content'
Timing: Jan 18 2025 16:09:55
Script end

Main resources:

Total runtime0.6699 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 590.1328152.6250
Module start 'layout' 0.00520.0024 742.757839.4453
Module start 'content' 0.00760.6606 782.2031459.5469
Module end 'content' 0.66810.0017 1,241.75008.1797
Script end 0.6698  1,249.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5165160.0002
Check MTime0.00150.2232160.0001
Mysql Total
Database connection0.00070.108610.0007
Mysqli_queries0.628693.8393540.0116
Looping result0.00070.1117520.0000
Template Total0.640195.620.3201
Template load0.00250.378120.0013
Template processing0.637695.174320.3188
Template load and register function0.00020.028210.0002
states
state_id_array0.00070.103910.0007
state_identifier_array0.00150.219820.0007
Override
Cache load0.00200.2977140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.115420.0004
Fetch class attribute name0.00100.156420.0005
XML
Image XML parsing0.00020.033020.0001
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00070.1024100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs