Hello,

When I create a new panel node, the first step is to choose a layout, and then the node_form is displayed.
As I submit the node_form, the chosen layout has not been saved.

I tried to solve the problem swiflty with this :

function mymodule_form_alter(&$form, &$form_state, $form_id)
{
    if ($form_id == 'panel_node_form') {
        $form['panels_node']['layout']['#type'] = 'hidden'; // instead of 'value'
    }
}

But does anyone have a better solution ?
Is it something to be corrected into Panels, or something I would have done badly to configure it?

Thanks for your help !

Comments

Letharion’s picture

Status: Active » Closed (won't fix)

The "Panel Nodes" part of Panels is deprecated in favor of the new Panelizer project which allows you to attach panels to any node.

I'm closing most issues related to the "Panel nodes" component in order to clear up the issue queue. Closing the issue with "won't fix" without further discussion may seem drastic, but the issue queue is quite overloaded. If you feel that an issue is still relevant, please just re-open it.

Teastwood’s picture

Status: Closed (won't fix) » Active

No problem, if there's a better upcoming module, I won't complain !
And as it is in development release only at this time, I have my quickly-patched solution in the meantime.
Thank you !

Letharion’s picture

Status: Active » Closed (won't fix)

@Leela I'm glad things are working for you, but you re-opened the issue again? I'm guessing it wasn't your intention.
For your information, I'm currently working on an upgrade path from Panel Nodes to Panelizer.