Forums / Setup & design / Just copy-paste my custom php?

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

eZ debug

Timing: Jan 19 2025 03:17:26
Script start
Timing: Jan 19 2025 03:17:26
Module start 'content'
Timing: Jan 19 2025 03:17:27
Module end 'content'
Timing: Jan 19 2025 03:17:27
Script end

Main resources:

Total runtime1.1468 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0097 590.0859180.8359
Module start 'content' 0.00970.8995 770.9219542.7813
Module end 'content' 0.90930.2375 1,313.7031332.7813
Script end 1.1467  1,646.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3481210.0002
Check MTime0.00150.1326210.0001
Mysql Total
Database connection0.00080.066410.0008
Mysqli_queries1.041990.85221940.0054
Looping result0.00230.20051920.0000
Template Total1.110296.820.5551
Template load0.00210.183520.0011
Template processing1.108196.623220.5540
Template load and register function0.00020.014810.0002
states
state_id_array0.00160.142610.0016
state_identifier_array0.00140.119720.0007
Override
Cache load0.00180.1535190.0001
Sytem overhead
Fetch class attribute can translate value0.00170.145530.0006
Fetch class attribute name0.00120.100540.0003
XML
Image XML parsing0.00120.101230.0004
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.02742.3924290.0009
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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