is fetchByURLPath able to accept language params?

Author Message

Matt McLaughlin

Monday 14 September 2009 3:34:16 pm

eZContentObjectTreeNode::fetchByURLPath

Hi, I'm kind of an ez noob so bare with me.

I'm using fetchByURLPath and trying to pass it something like this 'eng/folder/article' and it fails to match an article. Does it not support languages? OR after I grab the contentNode from a successful request can I access other languages from that?

Also, while I have your attention, is there a method/class I need to filter returned content through? As it is now when I access my attribute's from a content node it's all in eZ Publishes xml format.

I've been trying to use the API documentation and the source code as a guide but it hasn't been very easy/successful. Is there a better set of documents/tutorials besides the ones eZ Publish has under their Developer tab?

Matt McLaughlin

Monday 14 September 2009 3:48:19 pm

Disregard my questions about formatting. I was able to find a site that gave a good example: http://serwatka.net/blog/fetching_ez_publish_content_objects_with_php It's a little old but it leads you in the right direction.

I'm still working with the languages issue so any help there would be appreciated.

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 16:16:38
Script start
Timing: Jan 18 2025 16:16:38
Module start 'layout'
Timing: Jan 18 2025 16:16:38
Module start 'content'
Timing: Jan 18 2025 16:16:39
Module end 'content'
Timing: Jan 18 2025 16:16:39
Script end

Main resources:

Total runtime0.7513 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 589.1641152.6406
Module start 'layout' 0.00850.0036 741.804739.4766
Module start 'content' 0.01210.7379 781.2813422.9922
Module end 'content' 0.75000.0013 1,204.27348.1250
Script end 0.7513  1,212.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4982160.0002
Check MTime0.00130.1709160.0001
Mysql Total
Database connection0.00110.150010.0011
Mysqli_queries0.713794.9924520.0137
Looping result0.00050.0711500.0000
Template Total0.719195.720.3596
Template load0.00210.274220.0010
Template processing0.717095.434320.3585
Template load and register function0.00020.024610.0002
states
state_id_array0.00070.090410.0007
state_identifier_array0.00100.137520.0005
Override
Cache load0.00170.2204110.0002
Sytem overhead
Fetch class attribute can translate value0.00080.103710.0008
Fetch class attribute name0.00100.127220.0005
XML
Image XML parsing0.00020.023010.0002
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00050.0717100.0001
String conversion0.00000.001240.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs