List all Messages of the logged user

Author Message

D K

Tuesday 02 December 2008 2:23:16 am

I want to list all forum messages of the logged user to show in a tab of the home page with paging option.

Please someone can help me to do this feature.

http://www.eyepax.com

André R.

Tuesday 02 December 2008 9:47:47 am

Use content list or content tree fetch with a attribute filer on owner id.
See here:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/list

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

Łukasz Serwatka

Tuesday 02 December 2008 11:47:04 am

You may also need the user fetch functions, especially if you are going to display that list in node view templates.
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/user

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

D K

Wednesday 03 December 2008 3:33:42 am

Can you please provide a code.

http://www.eyepax.com

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

Main resources:

Total runtime1.1940 sec
Peak memory usage8,192.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1563151.2109
Module start 'layout' 0.00530.0040 739.3672220.6875
Module start 'content' 0.00931.1837 960.05474,498.1484
Module end 'content' 1.19300.0009 5,458.203111.8438
Script end 1.1939  5,470.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2737160.0002
Check MTime0.00120.1001160.0001
Mysql Total
Database connection0.00080.069410.0008
Mysqli_queries1.107192.7229620.0179
Looping result0.00060.0493600.0000
Template Total1.130294.720.5651
Template load0.00190.160820.0010
Template processing1.128394.498320.5641
Template load and register function0.00180.147510.0018
states
state_id_array0.00270.226110.0027
state_identifier_array0.00130.111420.0007
Override
Cache load0.00160.1354160.0001
Sytem overhead
Fetch class attribute can translate value0.00210.172830.0007
Fetch class attribute name0.00250.210760.0004
XML
Image XML parsing0.00110.093030.0004
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00250.2065250.0001
String conversion0.00000.000640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs