Hello, I'm trying to achieve the following using the magnificent Panels 3 :) ->

when adding a new "day" (custom content type) of a specific "trip" (custom content type) I want to list all the days that are allready created for that trip.

So I made a view listing all "days" using argument field_referenceto_specifictrip. Then I override the node add/edit form for this type in Panels, adding a "Node from reference" relationship (dunno if this is needed).

Now editing a "day" node works: I see all days above! But adding a "day" node does not bring up the view, probably because the argument is not passed to views (node does not exist yet?!).

*I set the node reference to reference from url; so when I want to add a "day" I get an url something like node/add/day/9?destination=node%2F9

The main problem is that I don't really get how the arguments/context & relationships float around..

Comments

merlinofchaos’s picture

Status: Active » Fixed

I think in this case you'll need to get the view to try and grab the argument directly, because Panels doesn't have a way to look at extra arguments on the node/add page. So you probably need to set up some argument default code to get this number.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.