Smart Folder compare custom aspect with current username

cancel
Showing results for 
Search instead for 
Did you mean: 
TheCondor
Active Member

Smart Folder compare custom aspect with current username

Jump to solution

Hi all,

i'm trying to accomplish a simple model for a smart folder:

i've a custom model applied to a lot of standard folders, one aspect of the model is "fascli:RefercePerson" which could be A, B, C... while A, B, C are also the username used in alfresco.

The smart folder should search in the site and select only the folders where fascli:ReferencePerson == current username.

The first part is ok, i can query in the node browser for fascli:referencePerson == A (or B etc) but i don't know how use current_username variable as comparing value instead of a static string.
Thanks in advance to all!

1 Solution

Accepted Solutions
afaust
Master

Re: Smart Folder compare custom aspect with current username

Jump to solution

If you check the documentation, you will find that you can use the placeholder %CURRENT_USER% in a template to fill a condition that should use the current user's name.

View solution in original post

2 Replies
afaust
Master

Re: Smart Folder compare custom aspect with current username

Jump to solution

If you check the documentation, you will find that you can use the placeholder %CURRENT_USER% in a template to fill a condition that should use the current user's name.

View solution in original post

TheCondor
Active Member

Re: Smart Folder compare custom aspect with current username

Jump to solution

For other utility here the string i used:

(PATH:'/app:company_home/st:sites/cm:my-private-site/cm:documentLibrary/cm:Customers/*' AND TYPE:'cusfil:CustomerFile' ) AND cusfil:Referent: '%CURRENT_USER%'