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)
Extending WorkSite Bookmark object!
reddyl
Hi,
Is there a way I can create a customized bookmar or folder object so that I can add this customized worksite object to workspace.
reddy
Edited by reddyl on 02/25/05 11:52 AM (server time).
Find more posts tagged with
Comments
jny
Sorry, but I don't understand your question. Could you explain what this customized bookmark/folder object is that you're trying to create?
reddyl
I want to append user name parameter to the end of the url befor launching the url. I just need to add the user name to only selected urls and not all the urls. Is possible to use tag feature to distingush the url's.
Migrateduser
Yes, you should be able to do so - Most of menu URLS are in includes\clientmenus.js files - so You could modify this file to append the user name - after every URL
Now on clientside you dont have any mechism to get the userID( I assume you are referring to userId when you say user name) - So to put userID on clientside - One way to do is to modify the gllobal.asax file to append the userid in the cookie and then on client side you could read the cookie
something like this
void Application_PreRequestHandlerExecute(object sender, EventArgs args)
{
if(SessionContext.Current.Session != null)
{
HttpContext.Current.Response.Cookies.Add(new HttpCookie("worksite_userid", SessionContext.Current.Session.UserID));
}
}
JayAchTee
I didn't find the above code to compile in 8.2. For those interested this should work:
void Application_PreRequestHandlerExecute(object sender, EventArgs args)
{
if (iManage.WorkSite.Web.SessionContext.Current.Session != null)
{
try
{
HttpContext.Current.Response.Cookies.Add(new HttpCookie("worksite_userid", iManage.WorkSite.Web.SessionContext.Current.Session.UserID));
}
catch
{
HttpContext.Current.Response.Cookies.Add(new HttpCookie("worksite_userid", "*unknown*"));
}
}
}