User tests: Successful: Unsuccessful:
This PR add a new feature to display a list of Users from a selected User Group. You can use this new view for example to display a list of Users from the User Group "Author".
The front-end did not have a model/view to display a list of Users from a selected User Group. The back-end model of com_users has some authentication so that you cannot get data from the Users table if you are not logged in.
This PR adds a Front-end View + Model for Users and User.
It adds a new menu item type In the back-end:
Create some Users that you assign to some User Group (e.g. Author and Editor).
Add some Articles that you assign to those new Users.
In Menus > Main Menu, create a New Menu Item of type "Users: List Users from a Group"
Under the "Users" tab, configure what the new menu item should display:
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_users Language & Strings Front End |
Labels |
Added:
?
?
|
on a site with 10,000 users is it practical to have the exclude users filter?
In joomla 4 we don't use class="chzn-color" instead it should be class="switcher"
and for the label it should not be the words "Show Feature" with options yes/no but simply "Feature" with options show/hide
on a site with 10,000 users is it practical to have the exclude users filter?
Yes, in case you would have 10,000 Authors and you would exclude 3,000,
then it is indeed rather impractical to select those 3,000 Users to exclude manually.
In that case I would advice you to create different User Groups (Authors_listed, Authors_unlisted).
This feature is useful if you just want to exclude a couple of Authors from being displayed.
The 10,000 user list would still be created
In joomla 4 we don't use class="chzn-color" instead it should be class="switcher"
and for the label it should not be the words "Show Feature" with options yes/no but simply "Feature" with options show/hide
@brianteeman Ok, I have seen the class="switcher" being used for yes/no.
How would can I use it for 3 options?
For: Use Global / Hide / Show ?
The 10,000 user list would still be creayed
IMHO for the case I described, excluding a couple of users, the Exclude function would be workable
How would can I use it for 3 options?
You can't - it is only for 2. But I dont see any cases of you having 3 in this pr
The 10,000 user list would still be creayed
IMHO for the case I described, excluding a couple of users, the Exclude function would be workable
Sorry you missed my point. Its not about would the select list be usable it is that the select list is always going to be created. That will be a big performance hit
This sounds like a redo of #21441.
for hardcoding
com_content
into this. Would be better if this was extendable with plugins.
@SharkyKZ @brianteeman Feel free to improve this PR that it works with extendable plugins.
Sorry you missed my point. Its not about would the select list be usable it is that the select list is always going to be created. That will be a big performance hit
@brianteeman Ok, you mean with the rendering of such a list itself...
I thought you meant that selecting many users from the list would be difficult.
What would you recommend instead?
A textarea where the userids numbers can be added comma delimited?
I honestly don't know. I just knew it was an issue because I faced it on a site once before.
I am still not convinced that this is something for core
Looking forward to seeing the new and updated pr based on our discussion at #jd19nl
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-05-28 14:24:06 |
Closed_By | ⇒ | franz-wohlkoenig |
Thanks for updating
General comment: we should make sure that by default, no listings are available. Site owners should be explicetly required to configure a menu item and select the corresponding user groups.