Hi All, I have a requirement to get search results based on search term I was able to do that and categorie them based on tags but along with category I need to show total resultsBut for pagenation I'm using offset and limit in the query with same query we need to get total results of that is there ...
able to get pages with template but for some pages that container is not present, so there it's throwing nullpointer exception which I'm not able to handle through groovy.
I'm trying check if a container is present or not in groovy script but it's throwing null pointer exception I'm handling that as below,getPage(parent).recurse { page -> def content = page.node def property = content.get('sling:resourceType') if (property == "project/c...