Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: TheMGamer commentedanyone?
Comment #2
jeni_dc CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: delacosta456 commentedhi all
i am also facing this situation can anyone help ?
The workaround provided are not working for me
Thanks