Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
In Views you can reference fields from other content types by creating a "relationship" in your view which will allow you to select fields from other node types. Create the relationship and then create fields and link them to the relationship you have created.
i created the view "contestant" what lists all contestants and links them to their profiles and the view "duels" what does the same with the duel nodes
till here everything's working fine and now my dilemma:
I created a variant in Panels for the contestant nodes and got a view_block of the duels visible Problem it shows me all duels
And I don't know how to formulate the argument in:
(checkbox)Send arguments
Select this to send all arguments from the panel directly to the view. If checked, the panel arguments will come after any context arguments above and precede any additional arguments passed in through the Arguments field below.
Arguments:(Argument field)
Additional arguments to send to the view as if they were part of the URL in the form of arg1/arg2/arg3. You may use %0, %1, ..., %N to grab arguments from the URL. Or use @0, @1, @2, ..., @N to use arguments passed into the panel.
how do I formulate that argument?
In that block I want only the duel nodes displayed which are containing the nodetitle of the node that their are displayed in, in their own title.
Comments
Relationships are what you need.
In Views you can reference fields from other content types by creating a "relationship" in your view which will allow you to select fields from other node types. Create the relationship and then create fields and link them to the relationship you have created.
Thx but I still have some problems
I was researching for days about this but i still need some help.
This is how i got it so far:
User role Contestant creates his profile node (node-type contestant)
text fields:
First name, Last name (both referenced by auto nod title to make the Title) and some other less important ones.
2 date fields for birthday and event day
2 location fields for born in and living in
Taxonomies:
Team(tags), style(tags)
then after the contestants are in the system
i create a node from content type duel
fields are here
contestant 1 ( nodereference) from profile (node-type contestant)
contestant 2 ( nodereference) from profile (node-type contestant)
Taxonomies:
Event (tags), Round (select list), Result(tags),
i created the view "contestant" what lists all contestants and links them to their profiles and the view "duels" what does the same with the duel nodes
till here everything's working fine and now my dilemma:
I created a variant in Panels for the contestant nodes and got a view_block of the duels visible
Problem it shows me all duels
And I don't know how to formulate the argument in:
admin/build/pages/edit/node_view - variants - view - content - views:
I added my block and have the option:
how do I formulate that argument?
In that block I want only the duel nodes displayed which are containing the nodetitle of the node that their are displayed in, in their own title.
I hope I got that right (is pretty confusing)
Thanx for help in advance
nobody?
there is some need for documentation about panels, relationships and arguments