About SmartFolders Templates Syntax Query:Path

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

About SmartFolders Templates Syntax Query:Path

Hello, I'm looking for a query code syntax that will look for a specific folder name (Example: TESTFOLDER) and bring together all the documentation from that folder. Also if possible to standardize a dynamic code that could detect path based on where the smartfolder is created and brings all the documents together.

I would really appreciate your help on this topic.

"TESTFOLDER" :

   -SUBFOLDER 1 (10 docs)

   -SUBFOLDER 2 ( 5 images)

   -SUBFOLDER 3 (4 docs)

SMARTFOLDER: This SmartFolder will contain all the documentation from "TESTFOLDER" and all the subfolders inside of it. ( 14 documents + 5 images) without cycles.

----------------------------------------

"name" : "General Documents",
"description" : "Documentos Generales",

"search" : {
"language" : "fts-alfresco",
"query" : "(PATH:'/app:company_home/st:sites//')                      ? ??

2 Replies
Highlighted
Advanced

Re: About SmartFolders Templates Syntax Query:Path

Hi:

You can try something like PATH:'%ACTUAL_PATH%//*' o for your TESTFOLDER in a site called "mysite":

PATH:'/app:company_home/st:sites/cm:mysite/cm:documentLibrary/cm:TESTFOLDER//*'

Regards.

--C.

Highlighted
Active Member

Re: About SmartFolders Templates Syntax Query:Path

Thank you Cesar,

It worked very well.

Kind Regards.