Tag Info

Hot answers tagged

20

I would like to take the opportunity to pimp a few of the posts on my own blog: Site Topology Planning Part 1 Site Topology Planning Part 2 Environments can vary quite a bit in the number of site collections they will have or how deep the site hierarchies will go. The amount of content in those site collections also can very. I once had a sub-site that ...


14

My response echo's a little of what Mike said... a lot of site collections stay pretty small, in which case it is much more efficient to keep them in a single content database so that there's not as much overhead (more about the number of objects in the instance than a performance perspective) in SQL Server associated with them from a database perspective. ...


13

I think that you could look at the managed paths Open Sharepoint Central Administration -> Application Managment -> Manage web applications Select your web application Click Managed Paths button on the ribbon You will see that there are at least two path: Root (Explicit inclusion) sites (Wildcard inclusion) Explicit inclusion means that you can ...


12

If all you want is a list of all site collections in the farm, all you have to do is open a PowerShell window, load the SharePoint snapin if you haven't (Add-PSSnapin Microsoft.SharePoint.PowerShell), and type Get-SPSite. If you want to return the list of site collections for a specific web application, the easiest way is to just pipe it as ...


9

For now, SharePoint 2010 does not support event for site collection adding or added.So it is not possible to do it programmatically Yes, You can plugin your feature to the site definition used for the site collection by "Feature Stapling". You can define a feature at scope of Web application. It will automatically activate the stapled feature(which is your ...


8

What you're looking for is the host named site collection, which enables you to assign a unique DNS name to site collections. Or alternatively create an AAM for existing Site collection to achieve it. For example, you can address them as http://hr.mycompany.com or http://sales.mycompany.com. The sample PowerShell code creates a new web application listing ...


8

The text is due to confusion SharePoint creates by having three different groups which when you create a site collection start out having the same persons, but are in fact different. The three groups are: Site Collection Owners Are controlled via `Central Administration | Application Management | Change site collection administrators' Receive email about ...


7

Yes, it's possible. The (probably) easiest way is to use feature stapling. Then you can say that all new instances of e.g. STS#0 (Team site), should activate this feature. <FeatureSiteTemplateAssociation Id="b8f334a0-1ffe-420d-b6e2-54a9faa6ba95" TemplateName="STS#0" />


7

Go to "Site Settings -> Users and Permissions -> People and groups" Click on the "Settings" menu and "List Settings" Scroll to the bottom of the page and click on the view that you want to export. Copy the url and in particular the List and View IDs ...


7

You're within the limitations of SharePoint (http://technet.microsoft.com/en-us/library/cc262787.aspx) in either scenario, which is good. Some of my thoughts As far as performance, I don't think you'll see much in way of improvement going from one DB to multiple DBs, unless you can move the DB files to different disk arrays. 100GB is a reasonable size for ...


6

As well as the other good information already provided by Mike and John there is also the flexibiliy you can gain from using multiple databases when you rely on the native SQL Server/SharePoint admin tools for managing your environments. For a starter it may make your content deployment/migration and backup/restore scenarios easier (from a database ...


6

You can define another navigation provider that pulls the data from a different source. Typically I use a SharePoint list, but you could use an XML file, database, or whatever makes the most sense for your requirements. The menu control placed on the MasterPage can either have the data source repointed, or you could decide to put a second control on the ...


6

If you want an event receiver on anything, then it's best to attach it to the content type Item (0x01) Example: CharlieDigital: Programmatically Adding an Event Receiver to a Content Type


5

Try creating a new site collection (team site) under the same web app. Perform the same security configuration with the groups and all that. Do you experience the same behaviour? Also, do you have a custom master page? If so, firstly ensure it is in a published state. Are there any custom controls on it that try to access protected resources (i.e. a control ...


5

Setup Audit Logging in SharePoint 2010 to accomplish this. Visit this blog to see how this is accomplished. Check out the office site to see what all features are captured in Audit logging.


5

You can use SPContext.Current.Site.HostName property to get the host name? Normally you can use SPContext.Current.Site.Url to return the Url of the root website in the site collection for the current web request. If you want the context of the current web site then use SPContext.Current.Web.Url.


5

Try this for the first link as it is intended to address exactly what you are seeing, though certain controls do not expand the value. <CustomAction Id="script1" Location="ScriptLink" ScriptSrc="~SiteCollection/Style%20Library/mySolution/custom1.js" /> As to whether it should be in _layouts or Style Library is a debate that has raged since the ...


5

Object cache: What Object cache does is stores metadata about SharePoint Server objects (like SPWeb, SPSite, SPList, etc.) on the WFEs. When a page is rendered, if there is data that needs to be retrieved through these objects, the SQL Server will not be hit. Features of SharePoint that uses Object cache are publishing, content query web part, navigation, ...


5

Here are two ways to tell the robots to not crawl your site: Adding robots.txt with the following content in the root folder with SharePoint Designer (All Items in SPD) User-agent: * Disallow: / Adding meta tag in your master page's Head section as below should prevent the robots from crowling you site. <meta name="robots" content="noindex" > ...


5

There are a couple of things you can try... such as 1. Get-SPDeletedSite & Remove-SPDeletedSite You may already have restored this site before. In that process you also deleted the site first (automatically), which you can find running the command... >Get-SPDeletedSite You'll see the site (or sites) listed, like this: WebApplicationId : ...


4

Anyway, it shouldn't be so hard:). This powershell works fine (SP2010). It's just a starting point. It iterates on all the lists of the site. [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint") $rootSite = New-Object Microsoft.SharePoint.SPSite("http://goaw059:25000/sites/itbic") $spWeb = $rootSite.OpenWeb(); foreach($list in ...


4

The advantage of multiple managed paths is it's a first piece of metadata you can have in your farm. It helps break sites out into logical trees even thought they all reside in the same farm. This becomes very beneficial if you organize your structure very flat (many site collection) Based on the managed paths, you can have different SLAs for things ...


4

Assuming your site collections are in same web application, you can easily use xml sitemap. Below are the steps: 1) Create a xml sitemap(myxml.sitemap for example) at root web application directory. 2)In web.config, under providers section, add : <add name="MySPXmlContentMapProvider" siteMapFile="myxml.sitemap" ...


4

Many points can be taken in consideration while choosing web application or site collection. Some important ones are: 1) Web application provides isolation. If your web application uses a unique application pool in IIS, the isolation is at Process level. If your web application uses a shared application pool in IIS, the isolation is at Application Domain ...


4

Use SPSiteDataQuery which is created exactly for this. It'll not optimize only the ?? parts but all of the traversing If there is many items and you're using SharePoint server then you should use ContentIterator


4

Can't test it myself but it wouldbe something like this: ######################## Start Variables ######################## $LoginName = "domain\login" $siteURL = "http://SharePointSiteURL" #URL to any site in the web application. ######################## End Variables ######################## Clear-Host $siteCount = 0 ...


4

Here is LINQ code that finds a Web Part with a title: string _webPartTitle = "mywebpart"; //Retrive the webpart with some title IList<Microsoft.SharePoint.WebPartPages.WebPart> _listFormWebParts = (from _wp in manager.WebParts.Cast<Microsoft.SharePoint.WebPartPages.WebPart>() ...


4

In my experience if you update the quota template it does not get applied to the sites that already use it. Through Central Administration apply another quota template to the site then reapply the previous one. If you have 100s or 1000s of sites to update you can use the following PowerShell. Hence, If you want to update the same template just set ...


4

The accepted answer is not correct. You can create multiple root sites in one web application. Additionally, each root site does not have to have a url of www.domain.com/path/site1. Using Host Named Site Collections, each root site can have it's own sub domain name. If your company name is contoso, and you create a web application at webapp.contoso.com, You ...



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