Just copy-paste my custom php?

Author Message

Markus Hausammann

Wednesday 23 January 2008 12:38:48 pm

Dear eZ-community

I found eZ publish today through CMSmatrix. I'm looking for a CMS which provides multilanguage features for a new project. Now I'm considering eZ versus drupal 6.

I have one pressing question for which I didn't find the quick and easy answer I need to make a decision.

How can I implement my own php-code in eZ without the need to comply with some kind of API. In Drupal I can just copy paste it as normal content and declare it as php.

Thank you very much for your help!
Markus

Greg McAvoy-Jensen

Wednesday 23 January 2008 5:51:52 pm

Others can provide a much better answer than I, but here's some information to get you started.

Including your own php code is generally done through through one of two systems for extending eZ Publish: template operators (http://ezpedia.org/wiki/en/ez/template_operators) and modules (http://ezpedia.org/wiki/en/ez/module).

Of course, eZ Publish has an extensive template language which draws upon a wealth of php code, greatly expediting custom CMS development. You can learn more about it here: http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_template_language

See also the reference section of the documentation: http://ez.no/doc/ez_publish/technical_manual/4_0/reference

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Markus Hausammann

Thursday 07 February 2008 12:53:56 am

I just came back here to thank you for your reply and to inform other readers of this thread that I finally chose neither ezpublish nor drupal. I'm now working with joomla which seems to be the only open source CMS on the market providing a combination of multilingual, multi user group, preselect profile at registration, easy-to-use-your-own-php-code features.

Thanks anyway!
Markus

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 19 2025 03:22:55
Script start
Timing: Jan 19 2025 03:22:55
Module start 'layout'
Timing: Jan 19 2025 03:22:55
Module start 'content'
Timing: Jan 19 2025 03:22:55
Module end 'content'
Timing: Jan 19 2025 03:22:55
Script end

Main resources:

Total runtime0.6312 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 589.1563152.6250
Module start 'layout' 0.00830.0025 741.781339.4453
Module start 'content' 0.01070.6193 781.2266537.7031
Module end 'content' 0.63000.0012 1,318.929712.1641
Script end 0.6312  1,331.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4989160.0002
Check MTime0.00120.1944160.0001
Mysql Total
Database connection0.00150.240510.0015
Mysqli_queries0.587793.1086570.0103
Looping result0.00040.0693550.0000
Template Total0.600795.220.3004
Template load0.00210.337620.0011
Template processing0.598694.822620.2993
Template load and register function0.00010.016310.0001
states
state_id_array0.00090.137510.0009
state_identifier_array0.00060.100520.0003
Override
Cache load0.00180.2833190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.100320.0003
Fetch class attribute name0.00090.149940.0002
XML
Image XML parsing0.00070.109320.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00070.1170180.0000
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs