Keyword

retrieving k2 users with regards to custom field

  • telegraph
  • telegraph's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #116224 by telegraph
Hello,

I'm developing a plugin for K2, where you can select an extra value in the k2 user profile, using your example plugin, to add a fields to the user profile form, i have:

<params group="user">
<param name="userCustomGroup" type="list" size="3" label="userCustomGroup" description="Select which group you belong to">
<option value="B">Business</option>
<option value="M">Media</option>
<option value="S">Sales</option>
</param>
</params>

This works great, and I can see the value is stored in the database in the _k2_users table, in the 'plugins' column, say I selected the 'Media' option in my user profile, the value in the database is {"notifieruserCustomGroup":"M"}

My question is, how can I retrieve a list of all users from the database who have this value stored?

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
11 years 2 months ago #116225 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: retrieving k2 users with regards to custom field
You've already posted this question before, i remember reading it :)

I don't think it's possible from the backend , lets wait for the developers to answer this.

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

  • telegraph
  • telegraph's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #116226 by telegraph
I thought perhaps my original post was a little ambiguous, this one is a bit more precise :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum