Community & Support

How to disable the create/edit node message?

Hi,
How i can disable the create/edit node message at the top of the page, when creating new node or editing an existing node?

Thanks :)

Comments

Quick and dirty method: In

Quick and dirty method:

In page.tpl.php you can comment print $tabs or set some condition like this:

<?php
if(arg(2) == 'edit' || arg(1) == 'add')
{

}
else
   print
$tabs;
?>

-Babu
Promote Drupal with Tshirts/merchandise: http://paramprojects.com/drupalstore
Drupal Projects showcase: http://paramprojects.com/website/drupal-servicesprojects

Thanks but I can't find any

Thanks but I can't find any "print $tabs" in my page.tpl.php…
I have " print $closure" in the end of the file but the message still appears when I comment it… :(

any idea

how to do it?

What theme are you using?

What theme are you using? $tabs must be there.

i'm using a theme created with Artisteer

yes i can see $tabs but there is no print $tabs...
that's from my page.tpl.php:

<?php
if (!empty($tabs)) { echo $tabs.'<div class="cleared"></div>'; };
?>

Though print and echo are not

Though print and echo are not the same for your purpose you can "assume" it is the same. So commenting out this line will not give you the tabs anymore.

I found it!!

it's not the $tabs line... it's this line:

<?php
if (!empty($messages)) { echo $messages; }
?>

:)

How I can set it off only on

How I can set it off only on specific page?
Is there any module for that?

You can disable specific

You can disable specific messages on specific pages using the following module - http://drupal.org/project/disable_messages