cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Folder and user properties

vincent-kali
Star Contributor
Star Contributor

Hi,

I would like to use a user property (not username) in a mart folder template query.

Is it possible ? 

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

You can only use properties from the smart folder root node (on which the aspect / template is applied to enable the smart folder) or the few "global" meta properties, like user name. There is no support for accessing any other properties. The engineer(s) who developed smart folders actually thought about making the meta properties extensible / configurable, but since Alfresco is hell bent on only ever implementing the bare minimum of features, only TODO statements were added in the code base, never to be implemented (https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/virtual/...).

View answer in original post

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

You can only use properties from the smart folder root node (on which the aspect / template is applied to enable the smart folder) or the few "global" meta properties, like user name. There is no support for accessing any other properties. The engineer(s) who developed smart folders actually thought about making the meta properties extensible / configurable, but since Alfresco is hell bent on only ever implementing the bare minimum of features, only TODO statements were added in the code base, never to be implemented (https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/virtual/...).