How to fetch the article by the current $node->creator?

Author Message

Quynh Nguyen

Saturday 28 February 2009 1:42:42 am

I read this document: http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

And did a search in forum... but there is no example for fetch the content by the current $node->creator.

Because the current creator is object. It is not "owner" attribute in above document, so I can not use the sample code from Example 17:

{def $nodes=fetch( 'content', 'list',
        hash( 'parent_node_id', 42,
             'attribute_filter', array( 'and',
                                 array( 'owner',
                                  '=',
                                 $current_user.contentobject_id ) ,
                                 array( 'class_identifier', '=', 'folder' ) ) ,
             'depth', 3 ) )}
 
{foreach $nodes as $node}
    {$node.name|wash}<br />
{/foreach}
 
{undef $nodes}

Is there any solution? Thanks!

Quynh Nguyen

Sunday 01 March 2009 4:19:51 am

oh, there is no way with current ezpublish version?

any hint please?

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 11:14:26
Script start
Timing: Jan 18 2025 11:14:26
Module start 'layout'
Timing: Jan 18 2025 11:14:26
Module start 'content'
Timing: Jan 18 2025 11:14:27
Module end 'content'
Timing: Jan 18 2025 11:14:27
Script end

Main resources:

Total runtime0.6355 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.0051 589.1953152.6406
Module start 'layout' 0.00510.0030 741.835939.4766
Module start 'content' 0.00810.6261 781.3125424.2109
Module end 'content' 0.63420.0013 1,205.52348.1250
Script end 0.6355  1,213.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5071160.0002
Check MTime0.00130.1999160.0001
Mysql Total
Database connection0.00070.114710.0007
Mysqli_queries0.597894.0623520.0115
Looping result0.00040.0629500.0000
Template Total0.606695.520.3033
Template load0.00190.303620.0010
Template processing0.604795.146420.3023
Template load and register function0.00010.019310.0001
states
state_id_array0.00170.272710.0017
state_identifier_array0.00070.117220.0004
Override
Cache load0.00150.2418110.0001
Sytem overhead
Fetch class attribute can translate value0.00080.118510.0008
Fetch class attribute name0.00140.223320.0007
XML
Image XML parsing0.00010.020610.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00060.0951100.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs