I try to create a view with NID argument and embedd inside as a field another view with totally ditfferent argument. I used module called views_field_view but it seems that parent view is passing arguments to child view, which cause to break arguments on child view- that is what I do not want. Is it possible to do such combination? Thank you
What I try to do: I try for days to come up with some decent solution to this problem: On each node there is a multivalue field (field_ref) for referrencing 2 nodes (can be left empty as well). Also each node contains another field for (field_par) referrencing parent node. Moreover, each node has taxonomy term.
Now, on current node NID I need to display referenced nodes from field_ref. If the field is empty I need to display the values from the same field - but this time from a node that is referrenced in field_par on current node. If this field is empty, it should display values of the same field but from field_par of the parent node etc. until the node with top term is reached.
My solution was fairly simple - Argument - Content: Has taxonomy term ID (with depth) set to minus values so I get all terms all the way up. Add relationship to field_ref and connect it with fields - for example title. This way I get all results coming from parent nodes with higher taxonomy terms. Then I restrict results only to 2 results and add sorting according to custom integer field that I created on taxonomy terms according their depth (currently there is no other way to sort terms according to their depth) And that is it.
Problem with this solution is that I am not able to get inside current node values because adding another argument like NID breaks functionality of taxonomy argument.
I was also proposed another solution: to add NID as main argument and to get values from parent nodes using combined relationship : Content: Taxonomy terms on node + Taxonomy term: Parent term + Taxonomy term: Content with term. Which works ok but this view is static.
Finally what came to my mind was to combine view with my solution as a field inside a view with NID argument. So that the main view would display current node fields and if empty, it would display the field with embeded view refults. But maybe the solution can be much simpler and I am overcomplicating it:)