Download & Extend

"Node add form" context problem: blocks disappearing on other variants of the same page

Project:Panels
Version:7.x-3.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (cannot reproduce)

Issue Summary

I'm using Panels together with display manager to create administration interface for my site. When I add "Node add form" context to one of my variants, whole page starts to behave buggy. Some blocks disappear in some variants. On other variants I see warning messages like on screenshot. Is there any workaround for this? Warnings are fine for me, because I can switch them off, but disappearing of blocks is a problem. Drupal 7.18.

AttachmentSize
screenshot.png296.06 KB

Comments

#1

Hm. Adding the 'node add form' context turns the entire page into a form, which on an administration page is probably not what you want to do. And this may be a problem all by itself if you've got other forms -- and that might be why other blocks disappears, if they contain forms. Having embedded form tags is illegal HTML and browsers may just choke on it.

You may need to just create a single block that contains the node add form configured the way you like it.

#2

Well, I only have views exposed forms in other Variants of panel page. No forms on same page certainly. And my screenshot is not about drupal admin page, I have another URL for that page, not starting with "admin", I just turn on fubik theme for that for visual pleasure.
I've just tried to create totally new panel page with only a single variant. I added "node add form" context to that variant and saw the same buggy behavior, warning messages and disappearing blocks. My guess is either about conflict with some other module or bug in Panels itself (or in page manager).

AttachmentSize
enabled_modules.txt 12.08 KB

#3

I've tried Form block module, it's nice. But putting node form in a block is not a good solution for me because I'd like to place separate fragments of a form which Panels allows to put (submit buttons, fields, vertical tabs) in my own way.

#4

Hm, just turned off Fubik theme for my page. Now everything seems to be ok. But I don't think that theme selection can affect this way. I use the following code to switch theme:

$admin_theme_url_patterns = array(
'~^/adminka~',
'~^/node/add~',
'~^/node/[0-9]+/edit~',
'~^/node/[0-9]+/delete~',
'~^/taxonomy/term/[0-9]+/edit~',
'~^/filter/tips~',
'~^/import~',
);

foreach ($admin_theme_url_patterns as $pattern)
if (preg_match($pattern,$_SERVER['REQUEST_URI']))
$conf['theme_default'] = 'fubik';

I place it insite settings.php

#5

Status:active» closed (cannot reproduce)