Module questions

Author Message

Clemens T

Wednesday 11 May 2005 8:37:05 am

Hey all,
I'd like to ask your opinion on the following issue:

I'm having a module right now and want to port it to ezPublish, I'd like to take full advantage of the advantages of ezPublish and use user-roles for access rights on the items in my module. Let's say my module is called 'My Documents' and I'd like to be able to upload a file. Everybody is able to download the files, some people are able to upload a file and some others are able to upload as well as move the file to the categorie so it's visible to the 'Everybody' user.

What is the best way to deal with these kinds of problems when I'd like to build a ezModule. Would it be wise to create a contentItem and add a field to it 'url' and let the file upload with some own custom php function? Or should I include the file as a related object? (I have no clue how this is done programmatically... but still). And listing them would mean a fetch on the contentItems. Or is it better to implement all this on my own table in the database? How would I go about fetching the data of my own custom type in the templates/module? (sorry, newbie talking here).

Thanks a lot,
Clemens Timmermans
ps: I'm currently going through the EuroFxRef tutorial, and it's very helpful, but I'm trying to learn ezPublish programming and apply it to my own problems, all help is appreciated! thanks.

Ekkehard Dörre

Wednesday 11 May 2005 11:38:36 am

Make a basic install e.g. news with files and you should do all roles, etc. in administration interface without any programming.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 01:01:11
Script start
Timing: Jan 19 2025 01:01:11
Module start 'layout'
Timing: Jan 19 2025 01:01:11
Module start 'content'
Timing: Jan 19 2025 01:01:12
Module end 'content'
Timing: Jan 19 2025 01:01:12
Script end

Main resources:

Total runtime0.9860 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.0076 590.1719152.6094
Module start 'layout' 0.00760.0040 742.781339.4141
Module start 'content' 0.01160.9726 782.1953525.4766
Module end 'content' 0.98420.0017 1,307.67198.1875
Script end 0.9859  1,315.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3707160.0002
Check MTime0.00140.1437160.0001
Mysql Total
Database connection0.00100.099210.0010
Mysqli_queries0.937495.0688540.0174
Looping result0.00060.0601520.0000
Template Total0.939195.220.4696
Template load0.00240.247320.0012
Template processing0.936694.997520.4683
Template load and register function0.00020.016310.0002
states
state_id_array0.00090.096110.0009
state_identifier_array0.00210.213220.0011
Override
Cache load0.00190.1929140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.077520.0004
Fetch class attribute name0.00140.145230.0005
XML
Image XML parsing0.00050.053620.0003
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00080.0795160.0000
String conversion0.00000.002040.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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs