By haopei on
Hello everyone,
What is the best practice with 'tabs' when developing a custom layout?
I currently have this code on my page.tpl.php
<?php if (!empty($tabs)): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
(This was taken from the system's page.tpl.php file)
The problem with this is that this is shown to all users. Even anonymous users will see the 'view' tab.
There must be a better way. Thanks.
Comments
Permissions
The problem with this is that this is shown to all users. Even anonymous users will see the 'view' tab.
This is almost certainly a permissions issue. Edit your permissions to disallow anonymous user from editing the page (or whatever CCK you're using).