For the life of me, I can't get the settings right for the node add form context setting for panels.
The tutorial for using the node edit form context is great, so thought it would be similar to set up the node add
context.
The closest I get is to having the pane return:
Form
Form goes here.
Looking through the panels/content_types/form.inc include, I found the following function (plus my var_dump)
function panels_content_form($conf, $panel_args, &$context) {
$block->module = 'form';
var_dump($context);
if (isset($context->form)) {
$block->subject = $context->form_title;
if (!empty($context->form_id)) {
// If this is a form, drupal_render it.
$block->content = drupal_render($context->form);
}
else {
// Otherwise just spit back what we were given. This is probably an
// error message or something.
$block->content = $context->form;
}
$block->delta = $context->form_id;
}
else {
$block->subject = t('Form');
$block->content = t('Form goes here.');
$block->delta = 'unknown';
}
return $block;
}
What I end up with in the var_dump is the following:
object(panels_context)[10]
public 'type' =>
array
0 => string 'form' (length=4)
1 => string 'node_add' (length=8)
2 => string 'node_form' (length=9)
public 'data' => null
public 'title' => string 'Unknown context' (length=15)
public 'page_title' => string '' (length=0)
public 'identifier' => string 'Node add form' (length=13)
public 'argument' => null
public 'keyword' => string 'node_type' (length=9)
public 'plugin' => string 'node_add_form' (length=13)
Any ideas appreciated.

Comments
You don't have enough info
You don't have enough info here for me to help. Tell me your argument setup, the path you're hitting, and the like.
The main difference between node/add and node/edit is that the node/add argument expects a node type, where the node/edit argument expects a nid. Otherwise, in my testing they've been nearly identical.
figured it out....
After a bunch of fidlin' I took the underscore out of the machine readable name for the simple cck node name. Was "test_content" changed to "testcontent". Works fine. Must be a parsing error...
Also removed all context settings, as I don't think they are needed, but don't think they hurt either...
What I did was a fresh install. Then I created a simple cck type void of any new fields. Then I went through the steps of setting up a node add override for the page node type as follows:
path: node/add/%
arguments: node add form (defaults and "ignore it")
node types: originally just "page", then added "test content" (after I got page working) (finally changed to testcontent after renaming the cck type)
own display: originally just "page", then added "testcontent"
context: node add form
defaults, and "Page" then added a separate context "test content"
(once page working )
(I'm not quite getting how context works, and what it means to be
"embedded directly into the panel")
Once I removed the underscore from the cck node type, and refreshed cache, and reconfigured contexts, all worked fine.
I had the same problem
A quick fix for panels module is here:
http://drupal.org/node/317719
I agree that context is hard to put in context
Sorry ..
What would help me to fully understand it is some sort of concrete set of examples. I'm sure they exist and would love someone to point me in the right direction. Thanks.
I agree that context is hard to put in context
Sorry ..
What would help me to fully understand it is some sort of concrete set of examples. I'm sure they exist and would love someone to point me in the right direction. Thanks.
Might be nice to set up a group sandbox somewhere
merlinofchaos has a nice demo site linked off his blog. It really
helped me get started with panels 2. Would be nice to have
a sandbox somewhere that we could all play with to put up
annotated demos.
At a minimum, might be good to start a simple q&a around designing
w/ P2. Is this the best place? should we just start a couple
threads (pages?) One Q and A, and one, Designing with Panels 2,
Not sure, as I always get lost in this semi structured env.
(BTW, what's the nice ajax module groups is using that previews as you type)