Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

cmQueryController

Avatar

Former Community Member
Hi



how is this layout used?



which fields/objects do I have to include to get results?



how can I set the query parameters?



if I include the fields of the cmQuery - object, nothing happens the paragraph field is empty.



regards

Johannes
2 Replies

Avatar

Former Community Member
Hi Johannes,



You need to include of a cmQuerySpec field from the form template in order to get results. This field is part of the CM Query object library.



In order to get some results you will also need to edit the initialize script of cmQuerySpec. This is where you define the query that will get executed at run time.



Anthony

Adobe

Avatar

Former Community Member
Hi



thx for your help.



I found exactly what I was looking for: a brand new tutorial, helping to understand the CM solution.



http://blogs.adobe.com/livecycle/cm-content/CM-M2-LetterBuildingTutorial.pdf



regards

Johannes