cancel
Showing results for 
Search instead for 
Did you mean: 

About SmartFolders Templates Syntax Query:Path

rodrigobm
Champ on-the-rise
Champ on-the-rise

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 2

cesarista
World-Class Innovator
World-Class Innovator

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.

Thank you Cesar,

It worked very well.

Kind Regards.