cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of "userhome" repository filter?

Former Member
0 Kudos

Hi,

Anyone knows how to create a specific folder structure in /userhome repository using this Km repository filter?

Thanx.

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Jon,

Could you provide more details about your scenario?! A repository filter is not thought for creating content!?!

Best regards

Detlev

Former Member
0 Kudos

Hi Detlev,

nice to have the chance to correct you on your last day

Normally, you are right, Repository Filter are used for other purposes, but this Userhome Repository Filter like i.e. "userhome" actually checks if an application trys to access the path /userhome/<user.id>/favorites (i.e.), and if this path does not exist it creates the required subfolders.

So, Jon, actually what you need to do is the following:

1. Create a folder where you want to have this subfolders created (i.e. /documents/UserDocs).

2. In Content Management Configuration go to Repository Filters -> Show Advanced Options -> Userhome Filter and create a new filter. The prefix indicates the repository where the content will be stored, Startpath the subfolder where the user folders will be created. URL indicates the name of the subfolder that needs to created bellow the user-id folder. For example use:

Active=YES
URLs (csv)=docs
Prefix=/documents
Startpath=/UserDocs

3. Create a KM Navigation iView and the following entry for "Path to Initially Displayed Folder"

/~alias~/documents/UserDocs/<user.id>/docs

4. Open the KM Navigation iView and observe how the subfolders are created.

Best regards,

Robert

detlev_beutner
Active Contributor
0 Kudos

Hi Robert,

> to correct you on your last day

That was why I used a question mark, too - to ask. No to tell complete nonsense

Anyhow, I really didn't know this. And I still wonder a bit why a "filter" is used for creation... If I were SAP, I would change this at least with the next major release and just extend the standard CM Repository with such a function to create a structure which doesn't exist at access time...

Jon, have fun with Robert's explanation,

and reward hin ten points - he needs them!

Best regards

Detlev

Answers (0)