retrieving specific values from the database, instead of xml

Author Message

Matt Gifford

Tuesday 26 August 2008 2:19:42 am

Hi all

I'm working on a FLEX app with ezPublish. I am drawing out the relevant content for each page, but want to drill down further. For example, the data_text column in the db holds the xml created by ezPub which has all of the text and content for that particular item.

I really want to drill down further to bypass the xml and the grab the actual content, for example, the html text within a left_column, or a lat/long value from a googlemap extension.

I have done this within ezPub itself, by drilling down within the template and using the object data map, but can I access the specific values from within the database, or is it only within the xml?

Many thanks,

Matt

André R.

Tuesday 26 August 2008 2:53:51 am

You'll only get the xml when working directly against the db, the xhtml output is done by the templates.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 18:32:52
Script start
Timing: Jan 18 2025 18:32:52
Module start 'layout'
Timing: Jan 18 2025 18:32:52
Module start 'content'
Timing: Jan 18 2025 18:32:53
Module end 'content'
Timing: Jan 18 2025 18:32:53
Script end

Main resources:

Total runtime0.5839 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.0053 588.1719152.6563
Module start 'layout' 0.00530.0031 740.828139.5078
Module start 'content' 0.00830.5738 780.3359522.5391
Module end 'content' 0.58210.0018 1,302.87508.0938
Script end 0.5839  1,310.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5238160.0002
Check MTime0.00130.2171160.0001
Mysql Total
Database connection0.00040.074510.0004
Mysqli_queries0.536391.8458540.0099
Looping result0.00070.1127520.0000
Template Total0.548393.920.2742
Template load0.00190.323720.0009
Template processing0.546493.578220.2732
Template load and register function0.00020.037210.0002
states
state_id_array0.00100.173310.0010
state_identifier_array0.00130.224720.0007
Override
Cache load0.00150.2573120.0001
Sytem overhead
Fetch class attribute can translate value0.00070.121820.0004
Fetch class attribute name0.00100.173030.0003
XML
Image XML parsing0.00070.119520.0003
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00090.1554170.0001
String conversion0.00000.001340.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs