0

This is a little convoluted, so I'll try to be as clear as possible by using concrete examples.

It's basically a "relevant job suggestion" system. It works like this:

  • A "candidate" user creates a "CV" node.
  • An "employer" creates "job" nodes.
  • There is a flag set up that is attached to CVs.
  • This flag has a node reference field.
  • When an employer flags the CV, they choose a job node to reference (suggest)

I want to display a view of all job nodes suggested for that candidate - visible only to them (the author of the flagged node).

I hope that makes sense. I think the part I'm struggling with is getting the relationships & contextual filters right, so any pointers there would be appreciated.

1 Answer 1

0

I would have an entity reference field for the user where their CV node is referenced. (Using rules on node creation). Helps in many ways.

In views, the contextual filter would be getting those CV nodes using the entity reference filter.

Then in the relationships, you would pick the appropriate flag and it should display the relevant job postings.

I'll test this tomorrow as its very similar to something i did before. I might be off on the contextual filter but i think you should definitely use entity reference from the beginning.

Edit: I'm actually quite certain you should be able to do this without entity reference or rules. Filter the view using Job content type. Then two relationships, one for node authored and flag.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.