Forums / Developer / List of available user groups
Lo' F.
Thursday 21 April 2011 9:59:55 am
Hi guys,
Is there a way I can fecth a list of the available user_group under a user_group parent of the Users's section?
Something like this ... which sadly doesn't work! - where 199 is the id node of the user group under which there are the groups I need to list
{def $groups=fetch( 'content', 'list', hash( 'parent_node_id', 199) )} {foreach $groups as $group} {$group.name} <br /> {/foreach}
Thanks!
loredanaebook.it
Marko Žmak
Thursday 21 April 2011 11:38:58 pm
Yes Lo, the example you gave is exactly how you should do it, but it would also be usefull to use class filter, take a look at the documentation for the content/list fetch function:
And your example should work, I don't see any reason why it shouldn't. But here are some ideas:
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Friday 22 April 2011 3:14:49 am
Hi Marko,
Right, it was a matter of permission. Thanks!