Questions tagged [best-practices]

A "best practice" is a method or process that practitioners recognize (usually through experience and research) as being more effective at getting the job done than other methods (or processes).

4
votes
4answers
1k views

Best practices when creating Site to use as a template

I'm creating a site that I'll eventually use as a template to create other sites from it. The site will contain lists, workflows, user groups, content types etc etc. I want to make lots of clones ...
0
votes
2answers
599 views

Sharepoint 2010 - Related fields in dropdowns. How to?

In my UI I have a dropdown which contains some values: A, B, C. There is also another dropdown in the page whose values depend on the selected value in the first combo. If I select A in the first ...
2
votes
3answers
1k views

How should I check if SharePoint site is loaded on a desktop or on a mobile device?

I'm taking my chances and only using 1 web application and 1 masterpage for my SharePoint site, which I'm now also optimizing for mobile devices. I'm currently in the progress of developing a ...
0
votes
2answers
89 views

Sharepoint backups - Development image

I'm looking into creating an image of a SP 2010 development environment. I would like to avoid operations like restoring the image of the virtual machine (the environment is on a virtual PC) and opt ...
0
votes
2answers
954 views

Most appropriate value for MinimumBlobStorageSize?

I've set up RBS on my SharePoint 2010 server and I'm down to the very last step of deciding just how big a file needs to be before it's set in the Blob Store. There are tons of articles and blog ...
6
votes
3answers
217 views

Things to “get right” to succesfully develop Sharepoint solutions

Lets face it, SharePoint 2010 is a big ecosystem. You need to know the GUI, the administration options, the data model, have programming skills, know the API, know how it works internally etc etc. I, ...
1
vote
2answers
521 views

Best practices for updating list template schema files in SharePoint

I have a requirement to update the schema files of a list template which modifies the options available to the fields. But, when I am updating the schema file the options for the already defined ...
2
votes
2answers
3k views

What is the typical IT support team structure and their general areas of knowledge?

The place I work has purchased SharePoint 2010 Enterprise, for many reasons, but firstly for document management. However they are keen to get to most out of the 'rest of it'. But us developers ...
8
votes
3answers
15k views

When to choose web application vs SiteCollection vs Subsite?

In SharePoint you have the following types of objects: Web application (1) A container in a configuration database that stores administrative settings and entry-point URLs for site collections. (...
12
votes
3answers
6k views

Cross Site Collection Navigation

We are using SharePoint for our Intranet. We will have a site collection for the Intranet. Then a site collection for each department in the business. I.E. HR, IT, Finance. We are creating a custom ...
1
vote
2answers
176 views

Authoring Environment

I have taken a new job and have been introduced to a new SharePoint environment that has been set up. The topology is as follows. Dev - > Authoring -> Testing -> Production I am a little confused by ...
0
votes
1answer
169 views

Setting SPWeb.AllProperties on WebPart Install

I have a WebPart where I need to set a custom property in SPWeb.AllProperties. How can I on install check to see if a property is set? If it is not set I want to set it. Or is it best just to do this ...
35
votes
1answer
31k views

Using SPContext.Current or using static URL

There are multiple ways to work in the SP object model. The starting point for instantiating objects looks different when you look at different developers. Many times I see people doing this: SPList ...
6
votes
2answers
562 views

Is it bad to dispose an object twice?

With all the focus on disposing all disposable objects in SharePoint, I wondered if there is any harm in disposing an object twice. Especially since SharePoint seems to do some disposing itself too. ...
2
votes
3answers
134 views

4 using statements looks messy? Any suggestions on what is a better way to code this?

Imagine the following code: using (SPSite spSite = new SPSite(this.SiteURL)) { using (SPWeb spWeb = spSite.OpenWeb()) { using (SPSite spSite2 = new SPSite(this.SiteURL2)) { ...
10
votes
1answer
3k views

Best practices for creating a shared code library for SharePoint projects

I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
2
votes
3answers
107 views

Best Practice: Javascript Registration SP2007

There is always the ASP.net way of registering JavaScript on the page using the Page.ClientScript.RegisterClientScript() method, but I was wondering if there was a better way to register your ...
1
vote
1answer
140 views

How to set permissions for SP2010 Server

I'm new to SharePoint 2010 and am creating numerous Publishing sites with workflows, each for a different department. Each department needs to have a few people assigned to be able to create pages, ...
9
votes
3answers
1k views

Customization best practices for SP2010 [closed]

We'd like to customize the look of our SharePoint 2010 pages and sites but didn't know what some best practices are: We'd like to change the look of pages some without breaking the link between them ...
2
votes
1answer
1k views

Disposing of objects in an Event Receiver

I have an ItemUpdated event receiver running on a library. Some pretty basic logic. Here's the gist of what I'm doing: SPWeb web = properties.Web; SPContentTypeId ParentCT_Id = web....
1
vote
1answer
275 views

SharePoint 3 tier Service Application with EF

I'm looking for some best practices on how to setup a three tier application design with a SharePoint Service Applications. A case example: suppose I have customers, each customer has a set of ...
8
votes
4answers
4k views

URL Redirects (301/302) for Vanity/Friendly URLs

With Microsoft providing zero support when doing URL rewriting, what is my best approach for providing URL redirects? I'm not too familiar with the topic. The approach I've seen (a solution from a ...
2
votes
1answer
625 views

Two tier small farm Questions

Currently we have a db server and everything else installed on another server. We now have a third server at our disposal. I was wondering if it was possible to add the other server into the mix. ...
3
votes
3answers
2k views

Maintenance Page/Downtime

I have an IF site that will be undergoing a fairly large deployment. There will be a few hours of downtime, and I want to put a maintenance page at the front of the site, and prevent any traffic from ...
30
votes
7answers
7k views

List of best practices on structuring SharePoint 2010 solutions

I am looking for good guidance on how to structure a SharePoint Solution including: Visual Studio Project Structure Features (how to separate features) Namespaces When to use multiple project ...
0
votes
1answer
218 views

Content deployment/merge strategies best practices

We have a live site that has a fairly good amount of updates every day, mostly the business users make these changes. Our development team is also underway making big changes to the code (including ...
26
votes
5answers
2k views

Organizing WebParts in Visual Studio - Best Practices

My team is responsible for maintaining a SharePoint 2010 site that was developed by another group. This maintenance includes updates to existing web parts (approximately 20). Currently, all of these ...
1
vote
2answers
1k views

How should I programmatically customize the “My Profile” page (person.aspx)?

I am trying to customize the "my profile" page (person.aspx, "my site host" site collection) in SharePoint 2010. For example, I would like to: Add/delete some webparts Delete links from top ...
1
vote
2answers
3k views

How may document libraries are recommended for a site?

I have a document imaging solution that will have a document library for each weekday for scanned in documents. I know that it is recommended not to exceed 2000 items in a document library. Is ...
2
votes
2answers
3k views

Importing content from a Word document into SharePoint

We have some content in Word documents that we need to convert to web pages (publishing) in SharePoint. I know there are many ways to do this, with advantages and disadvantages. I would really like to ...
1
vote
1answer
208 views

How to test content databases without triggering alerts and workflows in test environment

Let's consider the following: You want to restore and attach SP Content Database in the test farm to test for folllowing scenario(s): Scenario A - To test if SharePoint 2007 database can be upgraded ...
0
votes
1answer
285 views

Branding SharePoint 2010 After the Fact

I am relatively new to SharePoint branding, but have experience in other developing aspects and administration. With SharePoint 2010, am I asking for trouble by getting my site (intranet for a ...
2
votes
4answers
143 views

What tool/approach is best to use to document the structure and hierarchy of a SharePoint site collection?

I need to document the structure and hierarchy of a SharePoint site collection. We need to show the Different sub sites, the hierarchy, the lists and libraries in each site, the list columns in case ...
0
votes
1answer
717 views

SharePoint 2010 - Multiple sites vs Fine-grained permissions for document library

For 800 customers with each one having 5 document libraries, would it be better to create a one site with 800 x 5 document library or 800 sites with each one having 5 document libraries. Please ...
3
votes
3answers
3k views

Storing custom properties for a SharePoint Site

Let's say you are building a Project Management solution where each Project equals one site (SPWeb object). Each project has it's properties like: Project Manager, Budget, Customer, Description, ...
0
votes
2answers
101 views

What are some tips for a SharePoint Server?

I have set up a SharePoint Server as the new Intranet for the company I work for. I have been thinking that it would be good to have an area where everyone can post ideas and tips they think everyone ...
9
votes
5answers
4k views

Best practices for building a SharePoint Extranet

What are the best practices when it comes to building a SharePoint Extranet? Any good resources out there? One question that I am particularly looking for some thoughts on is how to best create a ...
2
votes
3answers
286 views

Best way to build out and configure multiple lists

So, once you have your SharePoint site all planned out, what is the generally accepted or best way to start building out and configure multiple lists, document libraries and content types? Using the ...
1
vote
1answer
110 views

how to maintain a SharePoint server?

I am using SharePoint Server 2007 + Windows Server 2008. I want to know whether there are any existing best practices or tools to maintain a SharePoint server, for example how to monitor SharePoint ...
10
votes
2answers
979 views

Executing a new instance of a timer job before the previously running instance has finished executing

I have a timer job that invokes a WCF service that invokes a single threaded API internally. TO ensure that my system does not fail, i want to ensure that only a single instance runs at a time. I am ...
1
vote
2answers
733 views

SPMonitoredScope doesn't work as expected

my code: using (new SPMonitoredScope("Sleepy Time", 1000)) { System.Threading.Thread.Sleep(5000); } when I enable the Developer Dashboard, I am expecting a red border around it because the code ...
7
votes
3answers
3k views

Structure of SharePoint Solution

Are their any best practices with respect to how to structure a SharePoint solution? For example we are going to develop several workflows, these will use content types and list definitions. Should ...
2
votes
5answers
630 views

When is it right to customize a site definition?

In some scenarios there is a need for being in as much control of the site provisioning process as possible. In some senarios there is a good solution to customize site definition by customizing the ...
3
votes
2answers
1k views

(De)Commission SharePoint Database Servers

In our SharePoint Farm, We are running with 2 Database Servers and on which we have 20+ Databases.Now, due to some issues we would like to decommission the existing database servers and commission 2 ...
2
votes
5answers
6k views

Guidance on renaming the multitude of databases generated by SharePoint 2010

SharePoint 2010 appears to continue SharePoint 2007's tradition of automatically creating horribly named SQL Databases. Like many companies we have multiple farms and developer workstations connecting ...
7
votes
5answers
2k views

What is the best practice for redirecting users when sites are being upgraded?

We have an upgrade to an application coming up which requires a site collection to be deleted and recreated. In terms of managing the existing users experience during upgrade what would be the best ...
2
votes
4answers
627 views

Cache SP Objects or custom class?

Just wanted to see what the consensus on this one is… If you make a call to the OM to return a SP object e.g. SPListItemCollection, and then want to cache the results (to improve subsequent ...
1
vote
4answers
607 views

SharePoint 2007 Antivirus Protection

What antivirus products have you used in SharePoint 2007 (WSS v3 and MOSS 2007) implementations? I've had quite a bit of experience with Forefront Security for SharePoint and its my default ...
2
votes
2answers
1k views

SharePoint Custom Module Development and Deployment

We're working on custom module (Information Management System) for SharePoint. The project file of this module is a Class Library which contains User Controls. The User Controls was based upon Smart ...
7
votes
5answers
4k views

Saving application settings in a SharePoint application best practices

What are the best practices for saving application settings in a Sharepoint application? Would anyone save the settings in the web.config's appsettings? What about saving them in a SharePoint list? ...