This post should point you in the right direction with a node from MEPover. Collect all categories in a project - #33 by T_Pover
This post should point you in the right direction with a node from MEPover. Collect all categories in a project - #33 by T_Pover