i need to customize the newsbweb.aspx(create new site page in sharepoint) to hide the tabs collaboration, publishing, meeting .Only the custom tabs needs to shown to the site admin.
The way i have set the users in the farm is
super admin for the site collection
local admins with rights for thier sites only.
I know i can hide the custom tabs by remove the project template ids in the webtemp . But this removes all the tabs for all the site users.
I want the site admins to only have access to the custom tabs.
I want to give the super administrator access to all the site creation tabs like collaboration,meeting,publishing and custom.
i added the inline code on the newsweb.aspx page and a created custom newsbweb1.aspx
<script type ="text/C#" runat="server" >
string strName = HttpContext.Current.User.Identity.Name.ToString();
protected override void OnLoad(EventArgs e)
if (strName !="Administrator")
View Complete Post