10 years ago
4
Topic

Hello,

I have a search & list type for the content type user.

I want to list all users that belong to a certain user group.

In the search panel I added field user_groups.

In live value I select my user group which has value 9.

In Match I tried:

Permissive
Exact
Any Words exact
Any Words

But the search always returns 0 results.

What am I doing wrong here?

Get a Book for SEBLOD
572 Posts
_jrmo
10 years ago
0
Level 1

Don't use the JForm User Group Field. Go in to your user content type (so this new field is 'locked') and add a new text field, make sure the storage is the same as the JForm User Group Field.

Use that in your search & List Type. Set the Match to "exact" - That should work.

10 years ago
1
Level 1

Hi James and thank you for the suggestion.

Made a text field with storage Standard->User->groups in my user content type.

Added this field to the search form with default value 9 (which is the group I want to filter) and match exact.

But still no search results.

Also tried all other match types. Still no luck...

143 Posts
Stef
10 years ago
0
Level 2

Hi Gebeer,

I have done this today:

  • Created à Search & Lists
  • Add Article access instead of user-group (cause i met problems too with this one)
  • In Live value entered "2" (as mine was for2) because access to this items should be reserved this the group himself, right ?
  • Works
10 years ago
0
Level 1

Hi Stef,

thanks for your answer.

We seem to have different use cases. I need to filter for user groups, not access levels. My list is a custom list in the admin section. The list should show only users of a specific group.

I tried it with art_access field but still get no results.

Get a Book for SEBLOD