I try to build a custom module with 2-Column, both with a different node add form, e.g. left column for pros comment where right column for cons comment.

In case of panels-6.x-3.5, I need to prepare both node add form in 2 wrapper mini-panel, and finally embed them into a panel page. It is quite complicated but at least functioning.

BTW, when upgrade to ctools-6.x-1.7 and panels-6.x-3.7, above method no longer functioning. The 2nd column (i.e. right column) just keep on display Form goes here. and so none of usable node add form display. It also complain with following PHP warning:

Notice: Undefined property: ctools_context::$id in panels_render_display() (line 1009 of /home/users/hswong3i/public_html/drupal-6.19/sites/all/modules/panels/panels.module).

I try to reproduce this bug with a completely new drupal-6.19 + ctools-6.x-1.7 + panels-6.x-3.7 installation, and bug still happening.

Here is a tiny sample module from bulk export as reference. Please kindly advices for any possible solution?

CommentFileSizeAuthor
2col_node_add_form.zip1.74 KBhswong3i
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kbk’s picture

I have noticed the change in behavior with the Panels 3.7.

hswong, I'm glad to read about your approach. I've tried multiple node add forms arranged vertically on one panel page and Drupal never knew what to do with 2 "submit" buttons. All of the required fields were enforced but only the lower Node Add form was actually submitted.

g76’s picture

same issue, latest dev of panels, ctools. I only have one form in a panel and at first it was showing fine, but now I just get "form goes here". Now if I enable the in-place editor, open the setting on the form, resave that, and then save the panel it will show the form again. but if you refresh the page, it goes away. If anyone has any ideas or could help, it would be much appreciated, I have client who needs this working by next week.

thanks again.

Lex-DRL’s picture

The same issue, but in a little bit different case.

I have a page at node/%nid/add path. It adds a tab with new node creation form the same type as current node. So each node type has it's own variant.
Panels successfully creates a tab and a page, but renders the form itself only for 1st variant. All the other variants have Form goes here and similar text for buttons.
I tried to rearrange variants, but, again, when any variant becomes 1st it has the form. Else there's only that text.

Maybe that will help to find a source of bug.

Panels 6.x-3.7
Drupal 6.19
PHP 5.1.6
MySQL 5.0.27

kiwad’s picture

+1

In my case it's with Content profile. The first from is shown, but the second form, in same variant or an other variant, is replaced by : "Form goes here"

If I reorder my variants, it switches so only one form in top variant works

I do have a work-around, but it is not really nice...

In a php custom block, I'm using printing the outpu of a drupal_get_form($form_id, $node);
My form then shows as expected

gunzip’s picture

subscribing. it looks like there can be only one form per panel.

ie. i'have a node form + views exposed block everything wrappend into *just one big form*
(so neither works indeed)

manuel.adan’s picture

It's not possible even in different variants.

a.ross’s picture

Have a look at this issue: #1243430: Multiple node add forms
See if that also works in D6!

Letharion’s picture

Status: Active » Fixed

Closing due to possible fix and in-activity.

Status: Fixed » Closed (fixed)

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

Boobaa’s picture

I have ran into the same(? at least very similar) problem: I was to have a $node_type_A and $node_type_B node add form below/in a node view page of $node_type_C. Adding the (two additional) node forms to the node/%node panel was a no-go, since using the submit button on $node_type_A form led to adding a $node_type_B node (I think because of the messed up HTML, but haven't looked into that that deeply). Then I introduced a mini panel for $node_type_A and another for $node_type_B, added those mini panels to the "main" panel, and voilá: it solved the problem for me.

I was using ctools-7.x-1.2 with #1739718: assign property of non-object in ctools_block_content_type_render, panels-7.x-3.3 (vanilla) on drupal-7.16, FTR. Seems these three issues are related to each other: #1243430: Multiple node add forms, #899746: Can't insert multiple node add form into single panel page (this one) and #1158850: Cannot use multiple forms in the same panel (wrongly nested forms).