Forums / Discussions / Wherefore art thou Data?

Thursday 26 May 2011 3:13:27 pm - 7 replies

Introduction

As a novice eZPublish programmer 6 year ago my biggest problem was always trying to find my data.  Of course attribute(show) was invaluable... and at first I wrote a shell script to parse that data to make it readable and years later I wrote ezfire to make that data more accessible...  But, for much of the time I was cursing and thinking - to paraphrase Mojo Nixon - "Where the hell's my data."

» Read full blog post

Author Message

Gaetano Giunta

Friday 27 May 2011 12:58:59 am

Interesting and useful, thanks!

I think I'm gonna run with this code and integrate it into ggsysinfo...

Btw, did you ever try the latest version of the http://projects.ez.no/ezdebug_template_operator extension? It has a souped up version of the attribute() operator that is light years ahead of the original - plus another operator to list all the template variables defined in the current scope (ndt: not my code in the first place). These two together are imho priceless for the noob eZ developer.

Principal Consultant International Business
Member of the Community Project Board

Marko Žmak

Friday 27 May 2011 6:15:19 am

One extension I found to be usefull is show_variables:

It helped me a lot in detecting which variables are presen in attribute view template and also embed template (who would have tought of using $#ContentAttribute: namespace).

@gateano: Does the ezdebug_template_operator extension include the same functionality as show_variables?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Steven E. Bailey

Saturday 28 May 2011 7:57:39 am

Thanks, I hadn't looked at either of these projects.  I'm going to look at the code now.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Gaetano Giunta

Sunday 29 May 2011 11:31:08 am

@marko: yes - stole the idea and the code too ;-)

Principal Consultant International Business
Member of the Community Project Board

Marko Žmak

Sunday 29 May 2011 3:54:41 pm

"

@marko: yes - stole the idea and the code too ;-)

"

Great, so the ezdebug_template operator contains the enhanced version of the show_variable... I supose getDefinedvars is the equivalent...

Any chances of getting some docs about the operators?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gaetano Giunta

Monday 30 May 2011 1:43:52 am

@Marko plentyful doc already, in the readme file once you install the extension ;-) (sorry for thread hijacking)

Principal Consultant International Business
Member of the Community Project Board

Nicolas Pastorino

Tuesday 31 May 2011 12:32:35 am

Hello guys !

Small "top-note" : the 

debug-log

operator has been around for some time now, not documented from day one but this is fixed today : 
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-functions/Debugging/debug-log/(language)/eng-GB

Small 2 cents, sometimes useful,

Cheers ! 

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

You must be logged in to post messages in this topic!

eZ debug

Timing: Jan 29 2025 12:45:37
Script start
Timing: Jan 29 2025 12:45:37
Module start 'content'
Timing: Jan 29 2025 12:45:37
Module end 'content'
Timing: Jan 29 2025 12:45:37
Script end

Main resources:

Total runtime0.2959 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.9219180.8516
Module start 'content' 0.00580.0069 768.7734106.7109
Module end 'content' 0.01270.2831 875.4844523.6328
Script end 0.2958  1,399.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.1563200.0002
Check MTime0.00140.4673200.0001
Mysql Total
Database connection0.00080.264910.0008
Mysqli_queries0.246383.23431410.0017
Looping result0.00130.43081390.0000
Template Total0.282595.510.2825
Template load0.00100.344110.0010
Template processing0.281595.120210.2815
Override
Cache load0.00070.236610.0007
Sytem overhead
Fetch class attribute can translate value0.00090.317610.0009
XML
Image XML parsing0.00030.084810.0003
General
dbfile0.00812.7234200.0004
String conversion0.00000.001630.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
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