I would like to display a dashboard counter for pages in my app Within Minutes (AWM).
I have a AWM-Class with a property:
* Title (<AWMDATA>: Static List)
Now I want to count how many pages have the given entry VALUEfromAWMDATA.
I’m not able to code the xwql-statement so far…
Something like this:
{{velocity}}
#set ( $count = 0 )
#foreach ($item in $services.query.xwql("select <?>.<AWMDATA> from XWikiDocument as <?>").execute())
#if ( $item.contains(<VALUEfromAWMDATA>))
#set ( $count = $count + 1 )
#end
#end
$count Pages with <VALUEfromAWMDATA>
{{/velocity}}
4 posts - 3 participants