Active
Project:
Panels
Version:
7.x-3.3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2013 at 14:26 UTC
Updated:
17 Jul 2020 at 01:50 UTC
Jump to comment: Most recent
The "status messages" page element does not work if you put it in a node edit / add page. In other cases it successfully replaces the already defined one from page.tpl.php and outputs the messages correctly.
Comments
Comment #1
TheMGamer commentedanyone?
Comment #2
jeni_dc commentedI've seen the same thing happen by adding a node/add context in a node panel to display a form for a different content type. The solution for me was to add a preprocess function like so:
I got that from Stack Exchange when I was thinking about outputting the messages in the node.tpl.php instead of a panel pane since my messages were appearing on nodes with a node/add form on them.
I would think that interrupting the usual rendering of the messages is now giving panels a chance to render them.
Comment #3
TheMGamer commentedThank you for your help. Also using some if statements, you can limit it to work only on some paths! For example:
This way, it limits it only on 'node/add/article' path.
Comment #4
TD44 commentedTheMGamer, jeni_dc,
hi i'm an ultimate beginner. I need more details.
Should i paste the code into node.tpl.php or page.tpl.php ?
(ASbartik is the name in ASbartik.info file )
Then would I be able to add the status messages pane anywhere into my panel variant (admin/structure/pages/edit/node_edit)?
Am i wrong?
Comment #5
delacosta456 commentedhi all
i am also facing this situation can anyone help ?
The workaround provided are not working for me
Thanks