<div dir="ltr"><div>Hi,</div><div><br></div>You may have a try with the variables handling provided by the MarkupExprPlus recipe.<div><br></div><div>Regards</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2019 at 9:15 PM Christopher Cox <<a href="mailto:ccox@endlessnow.com">ccox@endlessnow.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Consider the following template and assume a SysUser group with pages of <br>
users having the PTVs: department, name and active.<br>
<br>
[[#test1]]<br>
(:template defaults order=$:department:)<br>
(:template first {=$:department}:)<br>
<br>
Users in {=$:department}<br>
(:template each:)<br>
(:if equal {=$:active} true:)<br>
* [[{=$FullName}|{=$:name}]]<br>
(:ifend:)<br>
(:template last {=$:department}:)<br>
{=$:department} contains ???? pages.<br>
[[#test1end]]<br>
<br>
<br>
My question is if there's any way to get establish a counter that is <br>
zeroed for each new department and can be referenced in the "last" where <br>
I have the ????.<br>
<br>
I know there are counters for pages and groups.  Here, it's the same <br>
group, and I want a counter that I can set somehow based on the PTV <br>
change.  Possible?<br>
<br>
Ultimately, I'm hoping to use such things to generate pie charts (in <br>
case you wondering).<br>
<br>
Department  Count<br>
----------  -----<br>
IT          3<br>
Accounting  5<br>
etc..<br>
<br>
Yes, I know I can do this with lots of individual pagelists, just trying <br>
to see if there was a more efficient way.<br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>