Forums / Developer / Webdav enabled Intranet with personal folder space

Webdav enabled Intranet with personal folder space

Author Message

steve walker

Monday 11 July 2005 12:07:41 am

Hi there,

We are developing an intranet in which each user has their personal space to upload files etc.

I have been looking around the forums, and obviously the article:

http://ez.no/community/articles/build_a_webdav_enabled_intranet_with_ez_publish

helps me out loads :) I have also seen other articles that show how to create a personal folder for users when they register or their accounts are created by admin through workflows:

http://ez.no/community/forum/general/dinamically_creating_a_folder_asigning_roles

http://ez.no/community/forum/developer/dynamic_creation_of_a_folder

I want to add a link on the page 'my documents' - this links into their personal folder area - could anyone tell me how I'd code this link to automatically point to the folder setup for the user thats logged in?

Thanks, Steve.

http://www.oneworldmarket.co.uk

steve walker

Monday 11 July 2005 11:09:46 am

Any takers?

http://www.oneworldmarket.co.uk

Xavier Dutoit

Tuesday 12 July 2005 1:04:32 am

Hi,

Assuming you've the workflow to create the folder, you can do it using only the access rights.

You crate a "content/Personal folders"
For each user, you create a subfolder (owned by the user), eg
content/Personal folders/Xavier Dutoit

With the following access rights:
read: owner
write: owner

And that's it, on webdav, you only get content/Personal Folders/Steve Walker (as you don't have the access rights to the other personal folders).

X+

http://www.sydesy.com

steve walker

Tuesday 12 July 2005 1:18:10 am

Thanks Xavier.

http://www.oneworldmarket.co.uk

Lex 007

Monday 05 September 2005 8:32:44 am

Hello,

I would like to achieve the same thing. Steve, could you please post some sample code, especially for folder creation + roles assignment workflow ?

Did you write a special admin interface for the visitors who want to edit their personnal folder ?

Thanks

Lex

Gabriel Ambuehl

Monday 05 September 2005 9:12:23 am

Being able to edit a folder doesn't mean you can create new stuff in there.

But do search for ParentOwner permissions, if it works, a donation is much appreciated ;)

Visit http://triligon.org

Lex 007

Monday 05 September 2005 9:22:54 am

Oops you are right, I didn't mean "edit" the folder, but create objects under it.

I'll have a look at ParentOwner, thx ;)

eZ debug

Timing: Jan 30 2025 21:15:34
Script start
Timing: Jan 30 2025 21:15:34
Module start 'content'
Timing: Jan 30 2025 21:15:34
Module end 'content'
Timing: Jan 30 2025 21:15:34
Script end

Main resources:

Total runtime0.0285 sec
Peak memory usage6,144.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0781370.2734
Module start 'content' 0.00720.0153 958.35161,005.5781
Module end 'content' 0.02240.0060 1,963.929774.7031
Script end 0.0285  2,038.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00248.5792120.0002
Check MTime0.00103.5874120.0001
Mysql Total
Database connection0.00082.719410.0008
Mysqli_queries0.00227.737040.0006
Looping result0.00000.039320.0000
Template Total0.005619.710.0056
Template load0.00082.943310.0008
Template processing0.004816.784910.0048
Override
Cache load0.00062.109510.0006
General
dbfile0.003712.9836100.0004
String conversion0.00000.014230.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs