How to have a custom single page for each customer.

Author Message

Robin Sørlie

Friday 01 August 2003 6:44:07 am

Hi all.

For a webshop I like to have a page for each customer where I can put their recipts, bills, prvious orders, other stuff. My plan was to have a structure like this:

Root
---Customers
------Customer 1
------Customer 2
------Customer 3

etc...

How can I assign the roles, so only customer 1 can read the Customer 1 folder, customer 2 the customer 2 folder etc...

The customer X folders have their own class.

Have tried to have Content - read - self role on the customer class and tried to alter the author of the folder by adding an author datatype to the class.

Of course if I create the folder logged in as the customer, this wouldn't be a problem, cause then the folder is created by the customer and the self role is working. But I can't tell my customers to add an folder for me :)

There must be a way to edit or add an author, or?

Or maybe I'm a little off track here... Is there a better way to do this?

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 19:15:45
Script start
Timing: Jan 18 2025 19:15:45
Module start 'layout'
Timing: Jan 18 2025 19:15:45
Module start 'content'
Timing: Jan 18 2025 19:15:45
Module end 'content'
Timing: Jan 18 2025 19:15:45
Script end

Main resources:

Total runtime0.7625 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0469152.6406
Module start 'layout' 0.00630.0037 740.687539.4922
Module start 'content' 0.01010.7509 780.1797401.4141
Module end 'content' 0.76100.0015 1,181.59388.1250
Script end 0.7624  1,189.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5722160.0003
Check MTime0.00130.1755160.0001
Mysql Total
Database connection0.00130.163910.0013
Mysqli_queries0.719494.3482460.0156
Looping result0.00040.0541440.0000
Template Total0.725895.220.3629
Template load0.00240.312520.0012
Template processing0.723494.872420.3617
Template load and register function0.00020.019910.0002
states
state_id_array0.00100.134710.0010
state_identifier_array0.00200.267620.0010
Override
Cache load0.00190.2490170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.084110.0006
Fetch class attribute name0.00070.089110.0007
XML
Image XML parsing0.00010.018510.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00060.0755100.0001
String conversion0.00000.001240.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs