Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
TS 5.0.2 custom menu items by branch?
Bowker
TeamSite: v 5.0.2
O/S: NT 4
Has anyone found a way to create a custom menu item that is only visible/available from specific branches?
Dan Bowker
Northern Trust Company
Find more posts tagged with
Comments
tvaughan
I'm on Solaris, but my experience is that you can't. I know that TeamSite manages to differentiate between being in a WORKAREA and a branch, but differentiating
between
branches can't be easily done.
I'm in the middle of writing a custom menu item that will do a lot of the processing for me. My situation is that I have several branches off of default/main. One is internet, one is intranet, one is extranet, etc. I've got multiple Deployment scripts written for each branch (total ~10 scripts). But I don't want to enable a "Deploy to Internet" script for someone within my extranet branch.
To solve this problem, I grouped all 10 Deployment scripts under a single menu item called "Deploy." The Deploy cgi calls out to a bunch of ACLs and what-not I've set up to figure out which set of the 10 total deployments to display to the (user, branch, role) combination.
Sucks, huh?
Tom
starding
The nice thing would be, if custom-menu-items were only visible for users in a particular branch - but I don't think this is possible at the moment (in 5.02). I made a deployment script, that checks for the correct path like this (perl):
use TeamSite::CGI_lite;
my $cgi = TeamSite::CGI_lite->new();
$cgi->parse_data();
#value: Y:\default\main\mybranch\WORKAREA\myworkarea
# the area from which the menu generation script is called (e.g. "Y:") :
my $area = $cgi->{form}{'area_path'};
Check the $area variable to see if the user is in the right branch\area, display error message if not.
regards, Søren Tarding, IconMedialab