Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
I would like to write a query using JCR-SQL2 to return all component groups.
I tried the following but it is not returning anything:
SELECT * FROM [componentGroup]
Does anyone have any suggestions? Thanks!
Solved! Go to Solution.
@aemUser2345 ,You have to modify your query a bit, 'componentGroup' is not a valid node typeUse the below query to get the valid nodes
SELECT 'componentGroup' FROM [cq:Component]
add a WHERE ISDESCENDANTNODE clause if you want to get component groups under a specific pathIn your code then, you can get the value of 'componentGroup' property if required
View solution in original post
Views
Likes
Replies