This topic is locked

Hiding Tabs

7/15/2009 3:34:12 PM
PHPRunner General questions
M
MaxxaM author

Hi,
I've had a similar question in the past about hiding columns, but I can't find how to hide tabs. I'm basically wanting to hide tabs from specific users. Any help would be greatly appreciated.

S
swanside 7/15/2009

Use Dynamic Permissions.
Log in as admin and tick the boxes for the tabs you want the users to see

M
MaxxaM author 7/16/2009

Ah yes...the dynamic permissions...a great tool if I weren't using bluestem authentication. I knew I forgot to mention something...sorry.
So...how do I hide them programatically, or how do I enable dynamic permissions with another type of authentication.... i.e. Bluestem, ad authentication...

J
Jane 7/17/2009

Hi,
if you use PHPRunner 5.0 you can hide menu links in the List page: Before display event on the Events tab.

Unfortunately there is no easy way to do it in PHPRunner 5.1.
If you want to use dynamic permissions you can check your username and password in the Login page: Before process event, fill required PHPRunner session variables and redirect to the list page directly.

U
Urnso 7/17/2009

I use this in 5.0 on my quick jump menus.

if ($_SESSION["UserID"] == "<username>")

$xt->assign("<name>_tablelink",false);


If you go to your visual editor and look at the html code. Find the code that would say something like
{BEGIN <name>_tablelink} .........other code for your tab....... {END <name>_tablelink}
It may not say tablelink with tabs... you may need some inout from Jane, or post some of you HTML here and we can figure it out.
The code will go on the events page under List:Before Display