Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm using the References module, the Page Manger, and Panels.
- Create two content types.
- On one content type, add a Node (content) reference field with unlimited entries.
- Go to Views
- Create a View Pane that accepts multiple NID's (the content that gets referenced)
- Set the Context argument to Node: NID
- Save the view
- Go to the Page Manager
- Enable the Node Display page
- In the Contexts section, add a Reference to your "Node Reference" field.
- In the panel display, add your View Pane.
- Set the context argument to be passed to the field from your "Node Reference".
- Save the page
- Create some content (of both types, and include more than one reference).
- View some content of the type that the Page refers to.
- Notice anything strange?
Only the first item in the reference list shows up.
To double check this, go back to your view, and plugin two or more NID's that you know of (n+n or n,n).
The view preview is correct, but the final display (on the page) is wrong.
Are entity tokens being used to pass NID's between the Page and the View?
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedMost contexts can only contain a single object, not a bunch of objects. It seems the relationship assumes you always mean the first delta, though actually it would be good if it were selectable.
For now, you can work around this, sort of, by using a view and doing node from view -- that'll let you pick them into individual contexts. However, a single context cannot, currently, accept multiple nodes.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedRetitling. There needs to be a delta setting, and this setting respected when choosing which context to create.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted this setting. It's not well tested, could use feedback from others!