J3.x

Adding custom fields/User Field/fr

From Joomla! Documentation

< J3.x:Adding custom fields
This page is a translated version of the page J3.x:Adding custom fields/User Field and the translation is 50% complete.

Other languages:
Deutsch • ‎English • ‎français • ‎Bahasa Indonesia • ‎Nederlands

Champ User (utilisateur)


User (Utilisateur)

Provides a field to select a user from a modal list. This field displays the User Name and stores the User ID.

Options

Il n’existe pas d'options particulière pour ce champ.

Informations en relation

See User form field type

Captures d'écran

Créer le champ

Let's say you create a field with the options shown in the next figure.

User field create-en.png

Utiliser le champ en backend

In the backend while creating an article or a contact you see the field like in the following imageː

User-en.png

Et si vous cliquez, une fenêtre modale va s'ouvrir et vous pouvez y sélectionner un utilisateur.

User 2-en.png


Utiliser le champ en frontend

In the frontend, you can see the field as you see in the following image. The option Automatic display is responsible for the position of the field and your template is responsible for the design of the field.
Fields are only displayed in the frontend if you have filled them with data in the article. If it is not a required field, can you forget it?

User field frontend-en.png