Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide Edit | View tabs?

Tags:

Can I hide the

Edit | View

tabs on top of each node ?

I've searched for this option in theme settings (both global and standard theme but I couldn't find it).

I still want to be able my customer to edit / administer content, so I cannot just remove the permission for it.

thanks

like image 923
aneuryzm Avatar asked Aug 20 '10 12:08

aneuryzm


People also ask

How do I get rid of sheet view?

Delete a Sheet View If you decide that you no longer want a particular Sheet View, select View > Options, select the view in question, and then press Delete.

What is the shortcut to unhide tabs in Excel?

So, yes, we can unhide the sheet using the shortcut key. Step 1: Just press “ALT + H + O + U + H” to open the unhide sheet box.


1 Answers

here is a very easy solution for you. (Drupal 7)

  • Open your page.tpl.php in your current template and search for the $tabs variable.

  • Remove the render code if you want to hide it completely.

  • If you want to display it only to administrators use this code

    <?php if ($tabs and $is_admin): ?> <div class="tabs">   <?php print render($tabs); ?> </div> 

    The above code checks if the user is administrator. If it is it will render the tabs. If not it wont render them.

like image 172
ANDiTKO Avatar answered Oct 03 '22 11:10

ANDiTKO