no,… you have to use task if using through a plugin, without it, the entry doesnt work. Also, the data is correct as I am crosschecking it with my working database. All them total are global numbers, per kanboard installation which is the intention.
OK, this might work, but IMHO the clean way would be extending the CategoryModel class, adding the missing functions, like e.g. getCategoryCount(). But maybe I miss something.
Yes, of course you should always use the query builder. But this was not the point. I just dislike going via a task, where this is not required. But it’s your decision at the end.
oh I think I have not explained it properly… I am not going via a task… but in to make the variable work via a plugin, you must use via task… although it is not actually going through a task. If you try the code without via task, you will get undefined variable.
I read it in the docs and then @creecros confirmed the same.