Find user with level 1-3, in spite of using level 4 by user?

3 years 6 days ago - 3 years 5 days ago #323951 by ericmuc
Foreword: only for showing you, which needs wanted to be added in CB, if you have an idea (maybe for autoactions - I learned there are solutions that I would never have thought of), please let me know - if not, no problem, I will implement them with my current CB understanding (I will try also to use query filter in userlists).

Hi,
Thanks for explaining and your suggestion.Please let me show you, what I need to do.

Can you please shortly check this?
ec.europa.eu/esco/portal/occupation

These data I want to add in CB, there are several levels with complicate names until the correct occupation name is shown.
In the ESCO website is a search function build in to find directly the occupation.

So I am looking for a search function also directly for the occupation name, because all the too administrative names of the levels above are complicate, the user don't know in which directory he can find his profession.

Therefore my idea to let the user search directly in 2942 occupations for his occupation (query single-select drop down with autocomplete). And for searching in levels above I need then a solution.

So at the moment I am wondering, which way is possible with CB to come close to the needed solution.

Thanks, best regards
Eric

Please Log in to join the conversation.

3 years 5 days ago #323961 by krileon
You should only need 2 fields for that. Design it the exact same way that site has its menu designed. So first have a select field with the following.

Value: 0
Label: Armed forces occupations
Value: 1
Label: Managers
Value: 2
Label: Professionals
Value: 3
Label: Technicians and associate professionals
Value: 4
Label: Clerical support workers
Value: 5
Label: Service and sales workers
Value: 6
Label: Skilled agricultural, forestry and fishery workers
Value: 7
Label: Craft and related trades workers
Value: 8
Label: Plant and machine operators and assemblers
Value: 9
Label: Elementary occupations

This gives you all the categories stored by their ISCO-08 code.

Next have another field that filters the 2942 occupants down based off the selected category. That other field could be a query select, query multiselect, query tag, or text with query autocomplete field. You'd use CB Core Fields Ajax and its Update On usage so it updates based off that select and you'd use CB Conditional to show the field if they've selected a category.

This will allow you to search on the category and/or on the occupation itself.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: ericmuc

Please Log in to join the conversation.

3 years 5 days ago - 3 years 5 days ago #323985 by ericmuc
Hi,
Thanks for your input! Ok, I will use only 2 of the 4 levels as you suggested. The possibility to use only one field and create the corresponding other levels above is too complicate.
Thanks and best regards
Eric

Please Log in to join the conversation.

3 years 2 days ago #324066 by ericmuc
Hi,
I have now implemented this structure.
But a further need remain:
Level 1 is implemented
Occupation names can be searched regarding the level 1 group.
Thats ok so far.

But now let us look on the userlist search:
Here the users can search with the level 1 and the result is a large list of users, because over several hundert of occupations are in each level 1.
And the users can search with the Occupation. Here the user has to look for the single occupation of the level 1.

What is missing here to give the user a better search tool at the hand: to search with the sublevels 2 and 3 to get easily subgroups of users.

So what can be done?
1) in total not 2 but 4 drop down fields as a chain: too complicate, especially for the user who set his occupation.
2) let the 2 drop downs for the single user but offer 4 drop downs in the userlist search

How can 2) be build up?

Every stored occupation in the field "Occupation" must be the base for a special code, which set the correponding level 2 and 3 in the fields of level 2 and 3 (with joining mysql tables).

My question is:

Can you provide a sample code for this with autoaction? I mean only a short sample, that I can use for further development.

If not, no problem, then I have to develop the code for my own in some way.

Thanks, best regards
Eric

Please Log in to join the conversation.

3 years 2 days ago #324068 by krileon
What's the primary issue of having the 2 dropdowns? The second dropdown has too much information? The CB Select usage explained in your below topic can be applied to userlists searching as well by adding the onBeforeDisplayUsersList trigger to your auto action.

www.joomlapolis.com/forum/255-developer-members-support/243008-autocomplete-with-multilanguage?start=6#323330

1) in total not 2 but 4 drop down fields as a chain: too complicate, especially for the user who set his occupation.

If you want 4 dropdowns then it should work perfectly fine to chain 4 dropdowns. It's possible this will complicate setting up a profile, but if you use CB Core Fields Ajax and its Update On usage with CB Conditional to show/hide the next dropdown based off previous selection it should be a pretty smooth experience.

2) let the 2 drop downs for the single user but offer 4 drop downs in the userlist search

It's not possible for a fields search behavior to differ from its edit behavior like that.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

3 years 2 days ago - 3 years 2 days ago #324069 by ericmuc
Hi,
Thanks. Only for explaing, why I am "so complicate" here:

It is only a matter of the userlist search.

As I wrote I have to implement the ESCO data base and the level 2 and level 3 names have a more academic purpose. I cannot let the normal user choosing his occupation as for sample a bicycle assembler to pick his occupation at the end of three drop downs with all academic descriptions. This will drive him mad.

On the other hand I will have skilled persons also in my site which are common to the academic names of the level 1-3 and which are searching for users with the right occupation. And these specialists shall have the possibiliy to use the official level 2 and 3 also.

So I need to have a solution for the different user types.

Thanks, best regards
Eric

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.201 seconds

Facebook Twitter LinkedIn