-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] Consistency: Users (front-end) - Front-end Overview + Single User view #43614
Comments
Wouldnt this be the same as using the existing contact creator plugin and then displaying a list of contacts#? |
Also pretty sure that displaying a list of individual users to exclude will be a massive performance issue on a site with a lot of users. We've seen that before for relatively small lists such as when we tried to display a select list of all folders in the media plugins |
No, I know the contract creator plugin.
Instead, we want to create views using the existing data (no duplicates) |
True! |
Looking at the previous PR (which I never understood why you closed it) I see a reference to an RFC you also created - in that RFC it says it was being taken to the production dept for a decision. joomla/rfc#19 (comment) Was that ever done? |
As for the exclusions I would do this by usergroup not by user. For example on one of my sites I have two parallel usergroups "public members" and "private members" |
Joomla is used for all kinds of websites. It is also great for magazine websites with articles and authors, association websites with members, portals with users, etc. However, currently in the Joomla front-end you cannot display lists of users without 3rd party extensions.
We would like to have:
In a lot of cases you could create a template override, add some code to get data from a model. In case of com_users you cannot use the back-end model in the front-end. To access the com_users back-end model you'll need some authentication so that only works for registered users who are logged in. Therefore we would like to include front-end models in com_users.
Some years ago I created a PR for this for Joomla 4 which was closed.
Maybe some parts of the code can be re-used: #25030
The following are guidelines for what we would like to see in a front-end Users Overview and Single User View for com_users.
Users Overview
Adding a menu item for Users Overview
A new "Users List" or "List Users" view should be created:
![menu-item-type](https://private-user-images.githubusercontent.com/1217850/336398350-d04a6b83-1966-4f95-bf5d-039bca172184.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjM5NTEsIm5iZiI6MTczOTM2MzY1MSwicGF0aCI6Ii8xMjE3ODUwLzMzNjM5ODM1MC1kMDRhNmI4My0xOTY2LTRmOTUtYmY1ZC0wMzliY2ExNzIxODQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTIzNDExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjdiMTc3YjEyNzI2ZWJkZjcwMTg5ZThlNDhiZWI4MmFmMGZmODAzNDA2ZjlhZGY1MTdjMTQ0ZjRiYTkwNzBjNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.M1tw6_IrQAwzl9q6CJh7gkH-qHJ_7If8gUDk0F-nCOw)
The menu item edit should have an option to select one or more User Groups, and an option to exclude single users from the overview. The example below shows a multiple select option. It would be better to use the "fancy select" for both fields to make it easier to add multiple groups/users.
![menu-item-edit2](https://private-user-images.githubusercontent.com/1217850/336399049-10dfd766-80eb-4cc1-be9e-8fb41d7d338e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjM5NTEsIm5iZiI6MTczOTM2MzY1MSwicGF0aCI6Ii8xMjE3ODUwLzMzNjM5OTA0OS0xMGRmZDc2Ni04MGViLTRjYzEtYmU5ZS04ZmI0MWQ3ZDMzOGUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTIzNDExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTM2Yjg3YzEyNmU1NzNmZWE1YzE4MWMxMjlkYzU4MmE5NzYyMzk5YjFhNDA5OWZlODJhODhiYjQyOTgzZTJjOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.dHmS4e9AOasijc-fmpTKijalzrBa4s_k5tBiEhOsve8)
Front-end view of User Overview
The front-end User Overview should display some columns with information. The columns should be configurable in the menu item. The Names of the user should link to an individual User page.
![front-end-users-overview](https://private-user-images.githubusercontent.com/1217850/336398341-3eb68ad7-0dd1-4bc8-82ed-880c3a2f0a78.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjM5NTEsIm5iZiI6MTczOTM2MzY1MSwicGF0aCI6Ii8xMjE3ODUwLzMzNjM5ODM0MS0zZWI2OGFkNy0wZGQxLTRiYzgtODJlZC04ODBjM2EyZjBhNzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTIzNDExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWQwNDI4MmFjNTFhZTY1ODNhZGUwZDU3MDU1MGZlYzM0MzMxYTg5NDg5Y2UzNWNiZmVhYmVkMWM2ODE2ZTU5OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.zHF4gbTrZlJ3LTX0NfcFo3j9Og-uovh_VOTzOOqJffg)
Adding a menu item for Single User
A new "Single User" view should be created, just like the "Users List" view above. The menu item should have some options to display or hide User details (by default: hide)
Single User View
In some cases, like with a magazine website, it would be nice to display all articles written by a "Contributor". For that a separate module "Content by User" can be created. That way the Single User page can be a sort of place holder for other (3rd party) modules that are specific for that user.
The text was updated successfully, but these errors were encountered: