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)
Determining the user in a .tpl?
Shell
I am trying to set an extended attribute for the author of a DCR when they preview/generate so that whoever is creating/changing the content gets credited as the author.
I am having trouble determining who the author is. I can get it from the operating system eg. $strAuthor = getlogin(); but this does not return the domain.
Other parts of our application use
use TeamSite::CGI_lite;
my $cgi = TeamSite::CGI_lite->new();
$cgi->parse_data();
my $user_name = $cgi->{'form'}{'user_name'};
and it returns the domain and username and I want to do the same so that all our authors match.
Has anyone done something similar?
We have the following products installed:
- TeamSite 5.0.2
- TeamSite Templating 5.0.2
and are on a Windows environment.
Thanks, Shell.
Find more posts tagged with
Comments
There are no comments yet