Some help about a project ?

Author Message

Sébastien Morele

Monday 15 November 2010 12:45:51 am

Hi there !

I just strat using ez and some tips look for me ahrd to understand.

I've started a "simple" project to manage curiculum vitae. Process are simple, two kind of people, admin and user. User can create and edit his cv, cannot acees other cv. Admin can add comments on a cv, can read all cv.

Currently, i've cv listed, i can read them.

Questions are :

how can i manage users to do them create only one cv? Create a new user class ? cv content has to be a user extension ? Where should be located cv ? in content? a part of user ?

Can You help me ?

Tanks a lot.

seb

Gaetano Giunta

Monday 15 November 2010 1:21:55 am

To alter the definition of the user class, go to Setup / Classes.

CVs I would definitely create as part of the content tree. Keep the Users tree dedicated to user accounts only.

To allow users to create only one cv you could set up a workflow. Currently (afaik) the workflow eventy 'can create only one object of class X' does not exist, but it is an often requested feature - it might be a good thing if somebody coded it and we could add to the ezworkflow_collection extension.

In the meantime, you could set up an approval workflow where all cv creation is submitted to approval of admin. So admin can see it it is the 1st cv of a person or not.

Principal Consultant International Business
Member of the Community Project Board

Sébastien Morele

Monday 15 November 2010 1:40:04 am

Great, i did not think about worflows ...

I've also to create a folder per user whiwh contains pictiures, bio, social etc.

Hard work for me but all we'll be fine !

thnaks !

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 10:32:55
Script start
Timing: Jan 18 2025 10:32:55
Module start 'layout'
Timing: Jan 18 2025 10:32:55
Module start 'content'
Timing: Jan 18 2025 10:32:55
Module end 'content'
Timing: Jan 18 2025 10:32:55
Script end

Main resources:

Total runtime0.7041 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.0052 589.3438152.6250
Module start 'layout' 0.00520.0021 741.968839.4531
Module start 'content' 0.00740.6952 781.4219530.8828
Module end 'content' 0.70260.0015 1,312.304712.3203
Script end 0.7041  1,324.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5171160.0002
Check MTime0.00150.2186160.0001
Mysql Total
Database connection0.00110.162610.0011
Mysqli_queries0.655793.1267570.0115
Looping result0.00060.0850550.0000
Template Total0.671195.320.3356
Template load0.00340.489720.0017
Template processing0.667694.816320.3338
Template load and register function0.00020.035110.0002
states
state_id_array0.00090.129510.0009
state_identifier_array0.00080.111920.0004
Override
Cache load0.00270.3861230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.119720.0004
Fetch class attribute name0.00110.159940.0003
XML
Image XML parsing0.00050.069820.0002
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.1099160.0000
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
3content/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/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: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs