Hi,
sorry for late reply.
This way is not applicable for all uses case. for example:
- Public
- - Registered
- - UserGroup 1
- - UserGroup 2
With this structure this method will works
- Public
- - - Registered
- - - - UserGroup 1
- - - - - UserGroup 2
With this structure this method will not works because ACL associated to UserGroup1 will be inherit also from Usergroup2
-----------------
Anyway there is another way to make this but this require some PHP and Joomla Devs knowledges.
Our delimiter field type allow you to use Joomla content plugins (docs about this field type at
http://docs.easy-profile.com/index.php/article/html-delimiter-field-type).
You can use some free plugin like Sourcerer (
https://www.regularlabs.com/extensions/sourcerer) to get usergroups and display with some code like this:
{source}
<?php
global $JSNLIST_DISPLAYED_ID;
if($JSNLIST_DISPLAYED_ID) $owner_id=$JSNLIST_DISPLAYED_ID;
else $owner_id=JRequest::getVar( 'id' , JFactory::getUser()->id );
$usergroups_ids=JUserHelper::getUserGroups( $owner_id );
$db=JFactory::getDbo();
$query=$db->getQuery(true);
$query->select( 'title' );
$query->from( '#__usergroups' );
$query->where( 'id IN ( ' . implode( ',' , $usergroups_ids ) . ' ) ' );
$db->setQuery($query);
$usergrous=$db->loadColumn();
echo implode( ', ' , $usergrous );
?>
{/source}
Put this code in a HTML delimiter field type to show usergroups.
NOTE: this code is not tested and not supported, this is only for example purpose, you need to have PHP and Joomla devs knowledges.