projects / org / brookinsconsulting / bcuserregisteruserplacement
Find the Exponential Software extensions you want
| UNIX name | Owner | Status |
|---|---|---|
| bcuserregisteruserplacement | Brookins Consulting | stable |
| Version | Compatible with |
|---|---|
| N/A | N/A |
This extension provides a workflow event and settings to move a user upon creation to a specific user group or other content tree node based on the selection choice made during user registration (via user input).
Great for organizing user object within specific groups automatically!
BC User Register User Placement is licensed under the GNU General Public License.
The complete license agreement is included in the LICENSE file.
BC User Register User Placement is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
the Free Software Foundation.
BC User Register User Placement is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The GNU GPL gives you the right to use, modify and redistribute
BC User Register User Placement under certain conditions. The GNU GPL license
is distributed with the software, see the file doc/LICENSE.
It is also available at http://www.gnu.org/licenses/gpl.txt
You should have received a copy of the GNU General Public License
along with BC User Register User Placement in doc/LICENSE. If not, see http://www.gnu.org/licenses/.
Using BC User Register User Placement under the terms of the GNU GPL is free (as in freedom).
For more information or questions please contact: license@brookinsconsulting.com
The following requirements exists for using BC User Register User Placement extension:
This solution overrides the following workflow event:
This solution provides many settings. Some settings are required and must be customized upon installation and other settings are optional.
This solution's current settings are compatible with previous users of the eZ Publish 3.x placeusers extension.
Review the settings and educational comments in the bcuserregisteruserplacement.ini.append.php file, bcuserregisteruserplacement.ini.append.php
This solution's workflow event logs execution notices to the var/log/notice.log file
This solution's workflow event logs execution debug notices (when enabled via ini settings) to the var/log/debug.log file
Run the following command from your project root to install the extension:
bash$ composer require brookinsconsulting/bcuserregisteruserplacement dev-master;
Activate this extension by adding the following to your settings/override/site.ini.append.php:
[ExtensionSettings]
#
ActiveExtensions[]=bcuserregisteruserplacement
Regenerate kernel class override autoloads (Required).
php ./bin/php/ezpgenerateautoloads.php;
Clear eZ Publish Platform / eZ Publish Legacy caches (Required).
php ./bin/php/ezcache.php --clear-tag=ini;
Required: You must add the nodeIDs of the user groups into the MoveToUserGroupId[] settings array. Here is a example that would work in a default installation of eZ Publish Legacy:
MoveToUserGroupId[]
MoveToUserGroupId[]=14
MoveToUserGroupId[]=213
Required: You must review and customize the user class selection attribute identifier used when adding the content class selection attribute content. the user class selection attribute identifier expected by default is type. You can use any supported identifier you wish but if you change the identifier then you must customize the UserAttributeSelectionIdentifier setting. Here is a custom example:
UserAttributeSelectionIdentifier=user_group_selection_type
Now add the workflow to an trigger, i.e:
Note: This solution can also be used with a Workflow Multiplexer if you prefer or require additional workflow event flexibility and control
Edit settings override: settings/override/bcuserregisteruserplacement.ini.append.php and customize required settings with nodeIDs and selection attribute identifiers. Here is an example:
[BCUserRegisterUserPlacement]
UserAttributeSelectionIdentifier=type
MoveToUserGroupId[]=24
MoveToUserGroupId[]=23
MoveToUserGroupId[]=25
The solution is configured to work once properly installed and configured.
Simply navigate to the user/register module view and register a user.
Note: If you do not edit your settings/override/site.ini.append.php settings override file and have the following (empty) setting than all new user registrations will require new user registration email activation (user must check for email sent from eZ Publish containing a unique link to activate the user account before the user can login ).
[UserSettings]
VerifyUserType=
Note: If you use any kind of user account creation moderation then this solution will not be used until after the admin user moderating has approve the user account creation. This solution has been designed to work regardless of user account creation moderation system used.
Then navigate to the admin siteaccess User accounts tab, to the expected user group node and confirm that the newly registered user has been created.
Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md
If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact