Tag Info

New answers tagged

0

That header link will usually always go to the My Site host where the Newsfeed is hosted. You can also enable 'Site feeds' feature on a Web. This will provision the Newsfeed at a Web level which can be embedded on a page as a web part or should provision a page at {Web URL}/Newsfeed.aspx. Posting to this Web level Newsfeed will show on the My Site host ...


0

I believe I have solved my issue. Half of the issue was also stemming from stale PowerShell sessions, for example I'd leave my PowerShell window open during changes to my Claims Provider but changes were never reflected until I started a new PowerShell session. This is the reason why my EnsureUser was actually showing that it was working even when it ...


1

Their are couple of reasons for the issue. Make sure the imgages are still in the Imgaes folder on 14 hive( all server in farm) Make sure Docicon.xml is correct( sometime its become corrupt or somebody make changes in it which cause broken image).location of file is C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES.


0

I would like to point you to the corresponding technet page: Deployment and configuration for host-named site collections Lets do this from the beginning #get the one web app that will hold all host named site collections $hnscWebApp = Get-SPWebApplication | Where-Object {$_.DisplayName -eq "SharePoint HNSC Host - 80"} #get the url of the web app ...


0

The search in the osssearchresults.aspx happens by passing the parameters via URL. If you check the search URL of a site2 after clicking on the Search button, the url is like as follows: http://<Server>/sites/site2/_layouts/15/osssearchresults.aspx?u=</sites/site2>&k=<Searchword> Now u=</sites/site2> is getting changed in every ...


1

Rather than send your uses to the useless OSSSearch Page, why not just configure the Site Collection to send them to your search center. This way you will get results from all sites? Alternatively you can teach them what to expect when searching a list (just list content) a site (just site content) and "everything" all site collections.


1

try the below code and see if it works $claim = New-SPClaimsPrincipal -TrustedIdentityTokenIssuerr $ap -Identity UserName $site = New-SPSite $url -OwnerAlias $claim.ToEncodedString() -template "STS#0" I think you need to encode the string to get it works. http://technet.microsoft.com/en-us/library/ff607753(v=office.14).aspx#section1 Also check this one: ...


0

In the search settings for the site collection you need to choose "Enable custom scopes (such as "All Sites") by connecting this site collection with the following Search". Seems you selected "Do not use custom scopes. Use only contextual scopes (such as "This Site"). Display results in the Site" and hence the contextual results.


2

You can implement like the following: $web = Get-SPWeb http://sharepoint.contoso.com/sites/sitecollection $web.AnonymousState = [Microsoft.SharePoint.SPWeb+WebAnonymousState]::Enabled $web.Update()


0

Back up, restore, or move a SharePoint site - How do I move a SharePoint site from one location to another? claims that Sharepoint Designer can save a site, then restore it to another location. Restore a Web site section confirms it's possible to restore one as a top-level site.


2

You can do it all from C# using the excellent post found here: http://blah.winsmarts.com/2014-4-Get_list_of_site_collections_using_CSOM_in_Office365.aspx This example is, I believe, from within a SharePoint app but you can do it similarly from a console app. First you'll need to add a reference to Microsoft.Online.SharePoint.Client.Tenant.dll which you ...


1

You would have to resort to calling the PowerShell, and using the Get-SPOSite cmdlet to get all the site collections. The following will return the url of all site collections: var runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); var pipeline = runspace.CreatePipeline(); pipeline.Commands.AddScript( "Import-Module ...


1

Up until April 2014 Cumulative Update for the SharePoint 2013 release only Office 365 and SP Online supported the provisioning of site collections remotely using CSOM extensions (part of the Windows PowerShell for SharePoint Online package). This set of functionalities was not available for on-premises (or Office365-Dedicated). With April 2014 Cumulative ...


1

Use the following code to retrieve the file contents as string in your feature activation code: SPWeb web=(SPWeb)properties.Feature.Parent; string fileUrl="/_catalogs/masterpage/PageFromDocLayout.aspx"; string pageFromDocLayoutContent=web.GetFileAsString(fileUrl); Then do some modification to the file contents as you wish. According to your ...


0

using (var site = new SPSite("url")) { using (SPWeb web = site.RootWeb) { string url = web.Site.RootWeb.Url; } }


-1

Try : SPSite.RootWeb. More information at http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite.rootweb.aspx



Top 50 recent answers are included