Tag Info

Hot answers tagged

19

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 ...


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 ...


9

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 ...


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" />


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 ...


5

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 ...


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

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

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 ...


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

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 ...


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

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.


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 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 ...


4

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 ...


4

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, ...


4

In one web application, can we create multiple root site collections ? No, only one 'root' can exist, if you mean at the root of the URL i.e. http://domain.com/. You can create many more at http://domain.com/path/site1, http://domain.com/path/site2, etc. I just wanted to clarify the use of the word 'root'


3

the problem is that you cannot use RWEP to create the site collection. RWEP takes the the identity of the app pool and most likely (if you configured your farm correct) this account is not member of the farm adminstrators group - which is required to create the site collection. If you run the code in central admin it will work though, since it takes the ...


3

The Variations mechanism is very rigid. As soon as you have very specific requirements, it's likely not to be possible (out of the box). Variations work only within an individual site collection. You can't have variation labels living outside your site collection which has the Variations set up. I would look into options that allow you to make it appear as ...


3

You can use STSADM -o mergecontentdbs for this. You'll need to use the option where you specify a list of site collections to move (i.e. just one in your case) in a file passed to the command. The TechNet documentation has the details: http://technet.microsoft.com/en-us/library/cc288557.aspx



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