In my situation, what I want to do is have a node/add variant and a separate node/edit variant. Is this possible? I can't seem to figure out how to do this if it is.

Would I have to create a node/add/% custom panel page in order to do this (in addition to the system node/%/edit panel page that panels provides by default)? Or would this method cause something to break with Panels' system node/%/edit panel page?

Comments

merlinofchaos’s picture

Currently Panels can't do node/add separately from node/edit. I admit that when I set it up this way I wasn't completely sure it was a good idea, but I struggled with a way to do it better. Every use case I've run into has add and edit the same; the ones where it is not have complexities that this system can't do anyway.

Chris Einkauf’s picture

Status: Active » Closed (works as designed)

Merlin, thanks for the reply. Appreciated as always :)

PS - can't wait for Views 3. Big panels/views fan.

jdidelet’s picture

you can do it if you use php code in "Selection rules" on your "Edit" variant. Just put :

if (arg(2) == 'edit') {
return true;
} else {
return false;
}

Enjoy !
PS : Of course, don't forget to add "Node add form" in "Contexts" on your Add variant. Lats point. Reorder your variant and put all edit variant at the top of your list. I don't know why (I guess).