Hot answers tagged

5

CSOM Using the ClientContext, get your Site object and check its URL SPContext.Current.Site.ServerRelativeUrl : if == "/" JSOM For that you can use the _spPageContextInfo variable. To check if user is in root site collection vs any other site collection, check this variable : _spPageContextInfo.siteServerRelativeUrl : if == "/", then is the absolute ...


2

Source: http://www.sharepointrelated.com/2015/03/30/change-site-collection-url-sharepoint/ $site = Get-SPSite http://servername/customer/questions $site.Rename("http://servername/customer/generalquestions") And you have more detailed info in http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=573


2

I would do this way( i am guessing you are developer). Create a List in SharePoint with all required column( Site collection name, url, Owners, Site template etc)as per your requirement.One special field which will indicate whether this request processed or not( true/false type). Now create PowerShell Script, which will read from List and create the site ...


1

I think if you need to create a wizard with the user interaction, powershell is not the alternative. It is correct to use an application page. With C # code. Another alternative is that the sites are created in a list and trigger an event receiver with c# code to create the site collection. By using SSOM you have many tools for flexible solutions. Of ...


1

Please try below code <img src="<asp:Literal runat='server' Text='<%$SPUrl:~sitecollection/sitecollectionimages/MyImages/test.png%>' />" />


1

<script type="text/javascript" src="../../JSLibrary/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="../../JSLibrary/jquery.SPServices-0.4.8.min.js"></script> <script type="text/javascript"> $(document).ready(function () { var managerName; var userName = ...


1

First of all, there is no way to do this using the GUI, You have to rely on the PowerShell. there are 2 options in Powershell. use the Copy-Spsite Copy-SPSite http://contoso/sites/OldTeam -DestinationDatabase WSS_Content -TargetUrl http://contoso/sites/NewTeam Now Run the Remove-Spsite to remove the old site. Another option is Using the BackUp and ...


1

You could compare the ID with the RootWeb: clientContext.Load(clientContext.Site.RootWeb, rw => rw.Id); clientContext.Load(clientContext.Web, w => w.Id); clientContext.ExecuteQuery(); var isRoot = (clientContext.Site.RootWeb.Id == clientContext.Web.Id) ? true : false;


1

A project site, ProjectSite#0, is a standard SharePoint project site template. A Project Web Access site, PWA#0, is a special template for those using Project Pro/Project Web Access for project management. If you don't have anyone using MS Project, stick to ProjectSite#0 templates.


1

Projectsite is new template introduced in the SharePpint 2013, that site does not required the Project server licensing. You can read in depth about this template over here: On the PWA templates called project web app which are part of Project Server( Project service Application) and required extra configuration. i.e project server configuration, provision ...



Only top voted, non community-wiki answers of a minimum length are eligible