A WordPress plugin that allows membership of "network groups" to be managed by offering options on the WordPress "Edit User" screen and in a Contact Layout block in the CiviCRM.
A WordPress plugin that allows membership of "network groups" to be managed by offering options on the WordPress "Edit User" screen and in a Contact Layout Editor block in CiviCRM.
The groups are synced between CiviCRM and the "Groups" plugin using the "CiviCRM Groups Sync" plugin. These "network-level" groups can be used, for example, to display different Contact Layouts to different users depending on their group membership.
...
...
@@ -39,17 +39,7 @@ If you have cloned the code from GitLab, it is assumed that you know what you're
In order to use this plugin, you will need to create a number of "Groups" groups on the main site of your WordPress multisite instance. These groups should be synced to CiviCRM using the checkbox provided by the "CiviCRM Groups Sync" plugin.
Once you have created these, note down their IDs (as shown when you hover of their "Edit" links) and create an array of IDs in order of precedence. So, for example, if you created the following groups of decreasing precedence:
You should put this code into your `wp-config.php` file so that this plugin can read it.
Once you have created these, visit the CiviCRM Network Groups "Settings" page in Network Admin. Here, you can edit the title given to Network Groups wherever it is displayed as well as select and order the groups you want to define as Network Groups.
<pclass="description"><?php_e('Change the title of "Network Groups" to reflect the needs of your site. You might, for example, want to call them "Access Groups", "National Groups" or "Global Groups".','civicrm-network-groups');?></p>
</td>
</tr>
</table>
<hr/>
<h3><?php_e('Network Groups Configuration','civicrm-network-groups');?></h3>
<p><?php_e('Choose your Network Groups and arrange them in order of priority.','civicrm-network-groups');?></p>
$help='<p>'.__('For further information about using CiviCRM Network Groups, please refer to the README.md that comes with this plugin.','civicrm-network-groups').'</p>';
// --<
return$help;
}
/**
* Enqueue stylesheet for this plugin's "Settings" page.