Download the PHP package contaobayern/contao-member-contact-settings without Composer

On this page you can find all versions of the php package contaobayern/contao-member-contact-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-member-contact-settings

Contao Member Contact Settings

Member contact settings extension for Contao Open Source CMS

Overview

This module enhances the core modules Registration and MemberData by adding fields that control the allowed contact settings for the registered frontend user.

Installation via Composer

Search package contaobayern/contao-member-contact-settings and install as usual. For Contao 4.4.x use the Contao Manager to install the extension.

Manual Installation

  1. Download the files from the GitHub repository. Rename the folder to member-contact-settings and save under system/modules.
  2. Update your database and clear the internal cache.

Please note

This module's JavaScript will not work with table layouts (i.e. if "Tableless layout" is not checked in the module's definition). This applies to Contao 3 only, as Contao 4 only has templates for tableless layouts. So if you want to use this extension with table layouts you must uncheck the "Control field dependencies with JavaScript" option in your registration and personal data frontend modules.

Setup

The setup is the same for both frontend modules (registration and member data):

  1. Create a new frontend module of the type "registration" or "member data".
  2. Define the form as usual.
  3. With the new fields you can add dependencies. For example if you add "contactPhone" the field "phone" will become mandatory when the user checks "contactPhone". A list of all dependencies is given below.
  4. Sort the field as you wish. It makes sense to put the dependent fields right below the field from which they depend.
  5. By default field dependencies are controlled on client side via JavaScript (jQuery must be enabled in page layout). If you do not want to use JavaScript setting of mandatory status you can uncheck the according option.
  6. With the "Toggle visibility of dependent fields" option you can choose if depedent fields shall be hidden when they are not mandatory (can only be used with JavaScript enabled).

New fields and dependencies in tl_member

Field Dependencies
contactEmail -
contactLetter street, postal, city, country
contactPhone phone
contactFax fax

Adding your own dependencies

Dependencies are defined in the tl_member DCA. In the eval array of each field which has dependencies there is a new entry dependents:

The array mandatory contains the names of the fields which shall be set to mandatory when the parent field is checked. The array visibility contains the names of the fields which shall be shown or hidden according to the parent field.

You can add or modify dependencies in the system\config\dcaconfig.php file.

For example if you want to add state to the dependencies of contactLetter. You can do so by adding the following code to system\config\dcaconfig.php:

You can also create new dependencies for your own fields wherever you need them:

Attention: a field which is mandatory by default should not be put in any dependents list. Otherwise its mandatory status will be controlled by the parent field which is unwanted because the field should always be mandatory.


All versions of contao-member-contact-settings with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
contao/core-bundle Version ~3.5 || ~4.4
contao-community-alliance/composer-plugin Version ~2.4 || ~3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package contaobayern/contao-member-contact-settings contains the following files

Loading the files please wait ....