Forums / Developer / JSON-view of any content object

JSON-view of any content object

Author Message

Xavier Dutoit

Monday 24 September 2007 12:11:45 am

Cool,

Add yourself to the project and feel free to share with the others ;)

X+

P.S. As you've seen, they are only a few options (fetch node and fetch children), with a few parameters about how many content you want to fetch (just the node, the attributes, the owner). I'm fully aware we need more fetch functions (tree, with include limitation...), and I gladly welcome your additions !

http://www.sydesy.com

Paul Forsyth

Friday 02 November 2007 4:40:43 am

Hi Andre,

Quick question about how JSON is used within eZ. Is it now officially adopted by eZ?

Im deciding at the moment about dropping support for XAJAX and going JSON with various pieces of work i have on my plate.

Thanks,

Paul

Paul Borgermans

Friday 02 November 2007 5:44:23 am

Hi Paul,

Both approaches have partly a different scope: xajax is easy to expose kernel/your php classes and functions to Javascript, JSON is more a data transport mechanism

With eZ Publish 4.x, expect more JSON use ... so you can say we adopt it indeed.

Regards

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Friday 02 November 2007 6:01:54 am

Thanks Paul,

I'll test this out locally to see if our simple xajax scripts are as simple with json, with xavier's extension. I've really enjoyed using xajax as no-fuss method of ajax-ing with eZ.

Paul

Xavier Dutoit

Monday 05 November 2007 12:44:28 am

Hi,

Have a look at json/explorer

Simple exemple of fetching json datas as the server, template process them on the client side and display them.

X+

http://www.sydesy.com

Gaetano Giunta

Sunday 26 April 2009 10:48:53 am

For a 100% template-based approach to json, look into ggxmlview extension on projects.ez.no, too

Principal Consultant International Business
Member of the Community Project Board

eZ debug

Timing: Jan 18 2025 03:02:21
Script start
Timing: Jan 18 2025 03:02:21
Module start 'content'
Timing: Jan 18 2025 03:02:21
Module end 'content'
Timing: Jan 18 2025 03:02:21
Script end

Main resources:

Total runtime0.9616 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.2344180.8359
Module start 'content' 0.00770.7842 769.0703638.8672
Module end 'content' 0.79200.1696 1,407.9375354.5625
Script end 0.9615  1,762.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.4954210.0002
Check MTime0.00160.1652210.0001
Mysql Total
Database connection0.00070.077610.0007
Mysqli_queries0.856689.08522070.0041
Looping result0.00250.25732050.0000
Template Total0.934197.120.4671
Template load0.00200.210020.0010
Template processing0.932196.931320.4660
Template load and register function0.00010.013410.0001
states
state_id_array0.00100.106310.0010
state_identifier_array0.00120.120320.0006
Override
Cache load0.00180.1848340.0001
Sytem overhead
Fetch class attribute can translate value0.00120.124150.0002
Fetch class attribute name0.00080.080590.0001
XML
Image XML parsing0.00280.290750.0006
class_abstraction
Instantiating content class attribute0.00000.0013100.0000
General
dbfile0.01331.3865400.0003
String conversion0.00000.000830.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs