I have content type jobs,jobs are created by recruiter using terms reference fields from different vocabularies
a candidate has profile2 profile and builds his profile using the same term references fields from same vocabularies
Now i want to create view filtered by jobs content type, and the jobs list should only contain the jobs those match all the terms reference fields of the current user
this is what i have done
Fields:
1.View name my jobs and selected table view
2.selected the content title term reference fields
Relations:
Content: Author
(author) User: Profile
I tried using contextual filter where i selected profile2 fields but it is not working
How to go further to build this view kindly can some help please
Comments
Comment #1
sk8erboi commentedTry this
FILTER CRITERIA
Profile: Type (= Resume)
(User) User: Current (Yes)
it worked for me, if you dont see fields to add check out contextual filters!
Cheers!
Comment #2
kaizerking commentedthat gives list of jobs authored by current user
not the profile user
I tried using contextual filter , no success
Profile2, and filed collections are not pulled in to contextual filters or may be i dint know how to use them
Comment #3
sk8erboi commentedI just misqueued on this one! we are talking about erecruiter if i am not wrong!
are we talking in the way that only those results in job searches should be available which the user has in his job preference Field collection?
Comment #4
kaizerking commentedYes, we are talking about erecruiter,
Not only Job preferences , any term reference field used in profile2,either directly attached to profile2 or or/and in filed collection filed
Comment #5
sk8erboi commentedCan we try rules?
on the page load for a "search page" the profile2 (resume, in our case) fields can be fetched, and automatic filters can be set on those one!
As well a text can be included "show omitted results"
Not sure if this can be done! Just applying my morning post-tea brain :) I'll shoot a try on this one soon...
Comment #6
kaizerking commentedfirst thing is are you a coder?
let me know, i can give pointers
Comment #7
sk8erboi commentedI was a coder 3 years back, getting my hands on php and drupal now, had been working as a EMC storage administrator until recently turning up as a freelancer! can put my hands in though!
Comment #8
kaizerking commentedThat's good ,
then may be first thing is read thistry understanding Drupa API documentation and Module developer's guide, and the drupal cook book
your idea could work but not with rules.
Comment #9
sk8erboi commentedi was thinking about rules+actions reacting on a particular event. Say the event is search_job page load, and then we can load the profile2 fields ( jobs preferences, entity )using a view maybe, and compare them to the available jobs ( which is a content type, node ) and display the results! not sure if we can achieve this using rules and actions, thanks for the links, i'll be through them in a meanwhile!
Comment #10
kaizerking commentedI thought something like this
1. add required filter fields in job search view ,
2. Expose the filters (set view permissions to none
2. set the values programatically to the values equivalent to the values of current user's resume profile fields
3.save the search,set the notification setting to "none"- these save search CRUD actions should happen when in ever profile is created updated, deleted, and means when ever job is posted
Advantage is we will have notification function available when ever a job matching the profile is posted
the only problem is the exposed filter fields are not available to rules to set values
We can create a saved search using rules
Do you you think this is possible?
Comment #11
kaizerking commented@madrahul, pl check your inbox
Comment #12
sk8erboi commentedYes i think this can be done! never tried before, but rather this should be a discussion!
With so many drupal modules into existence, i believe this can be done in multiple ways, what i'd say is opening a discussion in ERECRUITER, and then taking reviews about how this can be achieved, we need to then take into consideration performance and security and implement the right thing in! Your words on this one?
BTW Exposing filters, is that not a security risk?
Comment #13
kaizerking commentedcheck my post here
If you have solution pl share
Comment #14
sk8erboi commentedThat was a quickie! i'll get through it and share my views :)
Comment #15
kaizerking commenteddid you check your inbox for my message which i sent earlier?
Comment #16
sk8erboi commentedYes i did, i tried installing the distro on my machine, but failed with some error, however my question was why this distro is not famous as erecruiter?
Comment #17
sk8erboi commented@kaiserking
As to your previous doubt
We can use a "apply" flag to jobs ( content type ) and the flag can now be related to the applicant who flagged ( applied ) to the job
Seeing the Recruiter part, the job ( content type ) that recruiter has created, he will be able to see the no.of applicants who flagged ( applied ) to the job!
Now comes the part of Job Notification!
We have a Field_collection JOB PREFERENCES where in some taxonomy terms are used for Industry Fields and Occupational fields, which are believe are the primary criteria on job search!
Say an example: I'd love to be notified about Jobs for "Computer Engineer" and "Storage Administrator"
In that case we can use Flag Terms to Flag Taxanomy terms to user's Job preferences. When a job ( content ) is posted related to these jobs, Rules can be used to automatically post a notification to the user!
Does this sound good to go?
Comment #18
crifi commentedThis is a duplicate of #1691460: Views broken relationship, isn't it?!
Comment #19
kaizerking commented@sk8erboi , What you are saying about flagging is job book marks which is already existing,
Please we are not discussing about distros here, please post that in that relevant issue que
About job preferences,The whole point is to let the system decide the candidate's suitability to the job,
in job preferences candidate enters the data which may not be relevant to his actual experience
@crifi , It may be or may not be as a matter fact, i have tried using relations and contextual filter to it. it did not work, whether the relation ship is broken or not i am not sure,Fact is i don,t know how to check whether it is working correctly or not, I also used cross join module instead of profile relation option which joins any table with any table, even that did not work.
and it seems that you are sure that this problem is related with views broken relation ships if you are not sure please make it active