Forums / Developer / How to have a custom single page for each customer.

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?