Share » Forums » General » Dinamically creating a folder,...

Dinamically creating a folder, asigning roles...

Dinamically creating a folder, asigning roles...

Tuesday 05 October 2004 9:47:59 pm - 1 reply

Author Message

Silke Fox

Wednesday 06 October 2004 5:43:01 am

Hi,

you will need a workflow for this. The workflow should be assigned to trigger "content publish after" and perform the following stuff:
- create personal folder for the newly subscribed user
- remember the node id of this folder
- assign role "personal folder" with subtree limitation on that folder to the user
Not sure, but maybe eZPolicyLimitationValue::createNew() will do the trick.
The basic role (e.g. "personal folder") must be created by hand first (content create *?).

Concerning 3.:
The copy function (/content/copy/<objectid>) will do it, though I'm not sure how to set the correct destination (i.e. the user's folder) here.

Hope that helps a bit.
silke

PS: This topic should be placed in the developer forum.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu