Using QueryBuilder API | Community
Skip to main content
New Participant
November 12, 2015
Solved

Using QueryBuilder API

  • November 12, 2015
  • 3 replies
  • 1284 views

Hi,

Previously I used QueryBuilder API to query JCR content repository . I had written the logic in jsp file itself. Now I want to use sightly . So only html files.

Could you please explain with a small example how to use Query Builder API and display the results using sightly.

 

Thanks in advance.

 

Best Regards,

Vijaya Immadisetty.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

I got Sightly and QueryBuilder working. 

See: Creating an AEM Sightly Component that uses the QueryBuilder API

3 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
November 17, 2015

I got Sightly and QueryBuilder working. 

See: Creating an AEM Sightly Component that uses the QueryBuilder API

smacdonald2008
New Participant
November 12, 2015

Here is another Sightly article that will help. Although it does not use QueryBuilder, it shows you how to display a result set in Sightly that was generated on the Java side. Very similar to what you want to do. Except  your case,  you are using QueryBuilder API to generate the result set.

https://helpx.adobe.com/experience-manager/using/domparser.html

smacdonald2008
New Participant
November 12, 2015

The best way to do this is use Java and Sightly. On the Java side, use Query builder API. Then display the results using Sightly.

Here is an article that shows you how to use Java and Sightly:

https://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

Early next week, we will release an article that shows this use case.