Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Hi All,
1] I am able to somehow handle scenario #1[i.e, search for recent modified pages in a given location]
2] However, I am not sure how to populate the pages returned into three separate components[which just have a path field in it]
Any thoughts/pointers on this will be helpful.
Visualizações
respostas
Total de curtidas
you want th result set to show up in three components? Where are the three compoents located? Also, where do you invoke the query from?
Visualizações
respostas
Total de curtidas
Hi,
This should be a straight forward solution. Just write a scheduler or service based on your bussiness requirement. Then fire the query, get the pages and modify/populate components using JCR API.
Thanks
Tuhin
Visualizações
respostas
Total de curtidas
Hi
You can create a service/component which will query JCR for Last modified pages (Via JCR API, Query manager API etc).
You can use this result in modifying/Adding Default value to component dialog pathfield.
Reference article for Querying:-
Link:- https://helpx.adobe.com/experience-manager/using/querying-experience-manager-data-using1.html
Link:- https://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html
Link:- https://hashimkhan.in/2015/12/02/query-builder/
Link:- http://aemcq5.blogspot.in/2014/11/cq5-querybuilder-simplified.html
Reference article to fill default values:
Link:- http://blogs.adobe.com/dekesmith/2012/10/05/setting-default-values-on-cq-components/
I hope this would be of some use to you.
Thanks and Regards
Kautuk Sahni
Visualizações
respostas
Total de curtidas
Hi Scott,
Thank you for your reply.
Based on the path selected in the components pathfield, we are taking querybuilder approach to get the results.
Yes, there should be three similar components[each one with just pathfiled in it] on the page and the pages returned should get populated in the pathfield of these three components.
Visualizações
respostas
Total de curtidas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtidas
respostas
Visualizações
Curtida
respostas