Download the PHP package open20/amos-admin without Composer
On this page you can find all versions of the php package open20/amos-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package amos-admin
Amos Admin
User Profile management
Installation
Add admin requirement in your composer.json:
Enable the Admin modules in modules-amos.php, add :
add admin migrations to console modules (console/config/migrations-amos.php):
If tags are needed enable tag roots for user in tag plugin. To do so:
- Activate tag plugin (check it is in modules configuration list)
- Open tag manager (admin privilege is required) url:
/tag/manager - Click on tag tree roots to enable
- In the last select of the page (user interest), enable for needed user roles.
Configurable fields
Here the list of configurable fields, properties of module AmosAdmin. If some property default is not suitable for your project, you can configure it in module, eg:
configuration example:
Module configuration params
-
enableRegister - boolean, default = false
set to true to enable user register to the application and create his own userprofile -
showLogInRegisterButton - boolean, default = true
set to true to enable user register button on login form -
hideStandardLoginPageSection - boolean, default = false
If true hide the login page section where the user can insert username and password. -
textWarningForRegisterDisabled - string set the text that will to show if the register is disabled
-
enableUserContacts - boolean, default = true
enable connection to users, send private messages, and see 'contacts' in section 'NETWORK' of the user profile -
cached - boolean, default = false
enable or not admin query caching -
cacheDuration - int, default = 84600 (24 hours)
seconds of query caching duration if $cache = true - default is 1 day -
bypassWorkflow - boolean, default = false
If true the plugin bypass the user profile workflow and show nothing of it -
htmlMailContent - string, default = '@vendor/open20/amos-admin/src/mail/user/credenziali-html'
This is the html used to render the message of the e-mail. In the view is available the variable $profile that is an instance of 'open20\amos\admin\models\UserProfile'. -
textMailContent - string, default = '@vendor/open20/amos-admin/src/mail/user/credenziali-text'
This is the text used to render the message of the e-mail. In the view is available the variable $profile that is an instance of 'open20\amos\admin\models\UserProfile' - fieldsConfigurations - array, default:
This array contains all configurations for boxes and fields to enable in form/wizard and view for model UserProfile. Find in /src/views/user-profile/boxes all the possible subviews to enable/disable for user profile.
-
profileRequiredFields - array, default = ['nome', 'cognome', 'status', 'presentazione_breve']
Mandatory fields in user profile form: by default name, surname, profile status and short presentation (I present myself in 140 characters) are mandatory.
If in your platform, for example, you don't want short presentation to be a mandatory field, overwrite profileRequiredFields property as below: -
confManager - ConfigurationManager, default = null
//TODO explain -
defaultUserRole - string, default = 'BASIC_USER'
At user creation, it is possible to customize the Rbac role to assign to a new user, default is BASIC_USER role. -
organizationModuleName - string, default = 'organizzazioni'
This is the module name (you used as array key in modules configuration of your platform) referring to a module extending open20\amos\core\interfaces\OrganizationsModuleInterface It is used to give the possibility to customize the entity type used to set user profile prevalent partnership, for example. //TODO explain better -
allowLoginWithEmailOrUsername - boolean, default = true
This feature allow user to login both with username or email. It's enabled by default. -
userCanSelectUsername - boolean, default = false
If this is set to false, when a new user is created the platform automatically set the username with the part before '@' of the email. If the username is not available the system generate an unique one. by default the user cannot select the username. -
disableUpdateChangeStatus - boolean, default = false
If this is set to false the popup on my profile modify is disabled. -
enableWorkflowChangeStatusMails - boolean, default = true
If this is set to false the mails on change profile workflow status are disabled. -
whiteListProfileImageExts - string, default = jpeg, jpg, png, gif
Used to set the allowed extensions for profile images. -
associateTutor - int, default = null At the creation of the user, set the user (Tutor) as contact of the created use.
-
defaultPrivateMessage - bool, default = null At the creation of the user, send a private message from the tutor
-
roleAndAreaOnOrganizations - boolean, default = false
If true, hide roles and areas standard and enable it on the single network organization row. -
roleAndAreaFromOrganizationsWithTypeCat - boolean, default = false
If true, uses "type_cat" field in the roles and areas queries. -
sendUserAssignmentsReportOnDelete - boolean, default = false To enable sending a report via email to all admin users when a user deletes himself or is deleted by another user. The email contains a recap of all assignments of the deleted user inside the app.
-
enableSendMessage - boolean, default = false
If this is true and $enableUserContacts is false all users see the "send message" button on view icon. -
helpLinkAction - string, default = null
The action to run from backend to go in the technical area section via the email and the private message sent enabling the param above. -
showFacilitatorForModuleSelect - boolean, default = false
Enable modify facilitator -
dontCheckOneTagPresent - boolean, default = false
If true the model validation doesn't check if there's at least one tag present for non ADMIN users. -
enableMultiUsersSameCF - boolean, default = false
If true the model validation doesn't check the unique of che fiscal code. -
enableInviteUserToEvent - boolean, default = false
If true enable a link on single user useful to invite a user to a published event with an event community. -
createContentInMyOwnCommunityOnly - boolean, default = false If true the validate basic user can create contents only in his/her own Communities
- actionBlacklistManageInvite - array, default = [] Array used for checking that action controller can use invitation button.
How to use Token groups
First create the token group and the you can use the following functions.
- You can login using the token, using the link /admin/security/login?token=[TOKEN]
- After the login you will be redirected to the url set on the TokenGroup
Get the created group of token (for a model, or model/model_id)
Generate the user tokens for the group using the user_id (array)
Generate a single token using the user_id, @return TokenUsers
All versions of amos-admin with dependencies
ext-ldap Version *
cornernote/yii2-workflow-manager Version *
open20/amos-comuni Version *
open20/amos-core Version ^1.28.0
open20/amos-attachments Version ^1.7.0
open20/amos-notify Version ^1.4.17
open20/amos-social-auth Version ^1.5.0
open20/amos-privileges Version ^1.0.0
open20/amos-community Version ^1.14.1
himiklab/yii2-recaptcha-widget Version *
raoul2000/yii2-workflow Version *
raoul2000/yii2-workflow-view Version *
softcommerce/yii2-knob Version *
softark/yii2-dual-listbox Version *