J4.x

Users List and Details Views/hr

From Joomla! Documentation

This page is a translated version of the page J4.x:Users List and Details Views and the translation is 61% complete.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎français • ‎hrvatski
GSoC 2018
Users List and Details Views
Documentation
Gsoc2016.png
Joomla! 
4.x

Uvod

Namjena projekta Enhance Users Component bila je da poboljša komponentu korisnika te da doda dva nova prikaza komponente. Ovaj članak će opisati ova dva nova prikaza, a to su:

  • Prikaz liste temeljen na korisničkim grupama
  • Detaljni prikaz korisnika

Odredi nivo pristupa

Nivo pristupa se koristi kako bi se znalo koja se informacija prikazuje trenutnom korisniku kao i koja je vrsta pristupa dostupna detaljnom prikazu trenutnog korisnika.

Da bi odredili nivo pristupa za trenutnog korisnika, upotrijebite Users    Manage

Ovdje imate stupac Access koji se može mijenjati na dva načina:

  1. Uređivanjem pojedinog korisnika i podešavanjem vrijednosti u padajućem izborniku Access na stranici Account Details
  2. Skupnom obradom. Morate izabrati korisnike na kojima želite izvršiti promjene, kliknuti batch i izabrati vrijednost iz padajućeg izbornika Set Access Level

Napomena: vrijednost stupca Access prikazuje ono što korisnik koji ima taj pristup može vidjeti, napr. Octav pripada registriranoj korisničkoj grupi, ali ima javni pristup, tako da će on moći vidjeti samo Annu i Sarah na listi javnih korisnika i sebe na listi registriranih korisnika.

Create menu item

Da bi pristupio listi korisnika morate stvoriti stavku izbornika za nju. Upotrijebite Menus    New Menu Item, kliknite Select za Menu Item Type, izaberite Users    User List.

Potom izaberite korisničku grupu koju želite prikazati.

Ono što će biti prikazano kad stvorite stavku izbornika s grupom registriranih korisnika jest:

  • Za korisnika koji nije logiran, lista će sadržavati korisnike koji su u registriranoj grupi i koji imaju javni nivo pristupa, ako korisnici imaju registrirani nivo pristupa ili su super korisnici, neće biti prikazani.
  • For an user that is logged in and has access level registered, the list will contain all users in the registered group that have access level registered or public, the ones with super user access will not be displayed.

There is also the possibility to create a menu item for a single user details view. The process is the same as for the list menu item, except that you have to choose an user instead of a group.

User details menu item-en.png

User List View

The information shown in the list view for each user is the name by default. Other information can be added using custom fields. The screenshot below contains the information shown in a menu item for a registered user group. The Description is a custom field.

Registered user list-en.png

User Details View

The information shown in the user details view includes by default the name, username and email of the user. The information shown is little is because there are a lot of different ways someone could want this view to look like, so we wanted it to be very customizable. In order to see additional information, you have to use custom fields and hook them to different events so that they are displayed in different parts of the page. The example below includes the Description custom field, but you can add a picture, phone number, address etc. (Note: If you are new to custom fields, see this tutorial on how to use them: Adding custom fields)

Details view-en.png

The user details view has the option to send an email to the user that can be activated via option in the user options or global options, Form tab.

Activate contact form-en.png

Once the Contact Form option is set to Show, the contact form is displayed in the user details view: