1

I'm using the modules below with the Views module to create a views block of all referenced nodes in the entity reference fields.

There is no problem to create a views that lists all the referenced nodes based on this tutorial.

What I want to do is to embed this views into nodes.

I tried both the EVA and Views Field View modules but couldn't be success (no result). The view I want to embed into nodes uses contextual filters and relationships and I think while using this view into a node or another view, the contextual filter doesn't work.

enter image description here


So, how I can embed this view (with contextual filter) into a node or another view?

enter image description here

1

Using panels module you can create a "pane view" for your view and easily pass any argument as view contextual filter .

here is a tutorial about views content panes

  • Thanks, but I don't want to use panels module for only that. I'm trying to find a right way to pass arguments. – herci Oct 21 '15 at 12:46
1

You can embed a view into a node using Insert View.
You can have your contextual filters setup as arguments in the format below,

[view:<view_name>=<display_name>=<argument>]

You can embed a view into a view as a field using Views Field View.
You will have to place your contextual filters from the replacement patterns as shown in the below picture.

Views Field View Image Screenshot

  • As I said in my question, I tried to use the Views Field View module but while passing the arguments (contextual filters) there is a problem I think, I couldn't do this. – herci Oct 21 '15 at 16:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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