Closed (works as designed)
Project:
Panels
Version:
6.x-3.0-rc1
Component:
User interface
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2009 at 23:47 UTC
Updated:
4 Nov 2009 at 13:43 UTC
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
Comment #1
merlinofchaos commentedCurrently 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.
Comment #2
Chris Einkauf commentedMerlin, thanks for the reply. Appreciated as always :)
PS - can't wait for Views 3. Big panels/views fan.
Comment #3
jdidelet commentedyou 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).