Hallo,
I want to show the documents of one type in year-folders.
invoices - 2020, 2021, 2022
Is this possible to build this with smart folders?
Cheers
Peter Schütt
Yes. Smart folders base on full text search. Create your search request for the folder and you will get results in proper folder.
For example:
{ "id : "1", "name":"Invoices", "nodes":[ { "name":"2023", ... "search":{ "language": "fts-alfresco", "query": "TYPE:'<your-index>:<invoice>' AND created:['2023-01-01' to '2023-12-31']"
}
},
{
"name":"2024",
...
}
]
}
Here is the documentation:
https://docs.alfresco.com/content-services/7.0/config/smart-folders/
Hallo,
thanks for Your answer.
Is it possible to generate the year folder in a generic way?
e.g. (Pseudo-Code, not real)
{ "id : "1", "name":"Invoices", "nodes":[ { "name":"<year_of_creation>", ... "search":{ "language": "fts-alfresco", "query": "TYPE:'<your-index>:<invoice>' AND created in <year_of_creation>"
}
}
]
}
I hope, my idea is clear.
Is this possible?
Cheers
Peter Schütt
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.