Custom module and content objects

Author Message

Mihhail Rekun

Tuesday 13 June 2006 4:47:07 am

Hello,

is there a way for custom module to access data from content objects?
What I am trying to implement is a simple custom module that will parse a text file with comma separated values and prepare data for viewing (customized list of links).
And I want to store this file (or path to uploaded file) in a content object. How can I interact with objects from a module? I couldn't find such a reference on your site yet, a link to some docs would be appreciated,

TIA,

Mihhail

Kristof Coomans

Tuesday 13 June 2006 5:31:15 am

Hi

You will find a list of links in this topic: http://ez.no/community/forum/general/bulk_import

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Mihhail Rekun

Wednesday 14 June 2006 3:24:09 am

Thanks!

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 19 2025 07:02:34
Script start
Timing: Jan 19 2025 07:02:34
Module start 'layout'
Timing: Jan 19 2025 07:02:34
Module start 'content'
Timing: Jan 19 2025 07:02:36
Module end 'content'
Timing: Jan 19 2025 07:02:36
Script end

Main resources:

Total runtime1.4041 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.1563152.6250
Module start 'layout' 0.00700.0047 741.781339.4453
Module start 'content' 0.01171.3909 781.2266530.2656
Module end 'content' 1.40260.0015 1,311.49228.1563
Script end 1.4040  1,319.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2507160.0002
Check MTime0.00150.1050160.0001
Mysql Total
Database connection0.00150.108210.0015
Mysqli_queries1.353896.4219570.0238
Looping result0.00060.0461550.0000
Template Total1.356396.620.6781
Template load0.00200.143320.0010
Template processing1.354296.449420.6771
Template load and register function0.00010.010710.0001
states
state_id_array0.00220.153810.0022
state_identifier_array0.00240.168720.0012
Override
Cache load0.00160.1163160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.058520.0004
Fetch class attribute name0.00190.137040.0005
XML
Image XML parsing0.00060.039520.0003
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00080.0537160.0000
String conversion0.00000.000840.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
3content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs