Thursday, May 29, 2008

Ten Things To Know About SharePoint 2007**

Ten Things To Know About SharePoint 2007**

The newest version of Microsoft SharePoint is a broader product than ever, with a host of new features, new tools, and many options for licensing and deployment. This list of key concepts is designed to help demystify SharePoint products and technologies.

Microsoft Office SharePoint Server 2007 (MOSS) brings new functionality not available in SharePoint Portal Server 2003 (SPS 2003) and also incorporates many of the features of Microsoft Content Management Server 2002 (MCMS 2002) as well as new components like InfoPath Form Services and Excel Services. MOSS is built on Windows SharePoint Services (WSS) 3.0 which is provided with Windows Server. MOSS contains many features that are not included in WSS.

SharePoint may now be used not only for intranets and extranets, but for public websites, including those that support anonymous users (no login). The most popular reason for using SharePoint is for a corporate intranet, where SharePoint provides a user interface to disparate data sources, a launching point for line of business applications and a place to publish or collaborate on documents.

The Main Elements of SharePoint

SharePoint’s building blocks include sites, site collections, web parts, and zones. A SharePoint site includes a default home page with space for highlighting the information important to your group, and several predefined pages for storing documents, ideas, and information. A site also includes navigation elements so you can find your way around. A Web Part is a modular unit of information that consists of a title bar, a frame, and content. Web Parts are the basic building blocks of a SharePoint site. The Zone specifies the area on the Web Part Page where the Web Part is located. Web Part Zones are groupings of Web Parts. The default site template includes a Top Zone, Middle Left Zone, Middle Right Zone, and Bottom Zone.

1. What are the eight types of sites in SharePoint 2007?

Portal Sites - A MOSS 2007 portal site is a WSS site collection containing a top-level site along with several child sites below it. Portal sites provide a focal point for finding relevant, personalized information in an organization. You can plan divisional and rollup portal sites that are based on the scale and structure of your organization and that aggregate organizational information, and you can plan interactive application portals where team members can perform tasks in your organization. Each of these portal sites should contain information needed for a project or division within your larger organization, and will link to collaboration sites relevant to that project or division. Some portal sites for larger divisions or projects will also aggregate information found on the entire smaller portal sites devoted to smaller divisions or projects. An application portal organizes team processes and provides mechanisms for running them. Application portals often include digital dashboards and other features for viewing and manipulating data related to the portal's purpose. The information presented in an application portal site usually comes from diverse sources, such as databases or other SharePoint sites.

Internet presence sites - Internet presence sites are customer-facing sites. They are usually branded and are characterized by consistent stylistic elements, such as colors, fonts and logos as well as structural elements, such as navigation features and the structure of site pages. Although the appearance of an Internet site is tightly controlled, the content of the site may be dynamic and may change frequently. For example, a corporate presence Internet site communicates important company information to customers, partners, investors and potential employees, including descriptions of products and services, company news, annual reports, public filings, and job openings. As another example, an online news Internet site provides frequently updated information, along with interactive features such as stock tickers and blogs. Because an Internet presence site represents your enterprise to an external audience, you might stage and test the site and then publish it, either based on a schedule or as needed, to its public "production" location. A staging site is a mirror of the production site that you use to test content before it's published. Using a staging site can help you ensure that published content meets stringent standards.

Managed Document Repository site This is a large-scale library useful as an enterprise-wide knowledge base or historical archive. It includes features that can help users navigate, search, and manage a large number of documents in a deep hierarchy by using a set of specialized Web Parts. A portal site for a large body of documents managed separately from your usual authoring and collaboration portal sites, with its own distinctly managed workflow and document lifecycle processes.

Records Repository site Records management is the management of files and documents that provide evidence of activities or transactions performed by the organization. The Records Repository site is designed to implement the storage component of a records management solution based on Office SharePoint Server 2007.

My Site - A team site based on Microsoft Windows SharePoint Services (version 3) with public and private views. The public view makes it easy for a user to share data and documents with other users within the organization. A personal site also has a private aspect, allowing a user to store data and documents that are not meant to be shared.

Personalization sites - A personalization site is a site created by using a template that filters and targets the information displayed on the page based on the identity of the current user viewing the site. Users can then choose to view the general content displayed by the portal or Internet site or they can view the related personalization site, which filters the content so that it is more relevant to a particular user's specific information needs or tasks. You can personalize Web Parts on other pages in several ways, including using the Current User Filter Web Part on a dashboard or any other site to filter data from other Web Parts based on the identity of the current user.

Document Workspace sites – Created within Word or Excel. Default template includes Announcements, document library, members, tasks, links web parts.

Meeting Workspace sites- Created from Outlook and creates a site to support a meeting. Default site template includes objectives, agenda, attendees list, document library.

2. What is a Site Collection?

A site collection is a hierarchical set of sites that can be managed together. Sites within a site collection have common features, such as:

Shared permissions,

Galleries for templates,

Content types, and

Web parts, and

They often share a common navigation.

All sites in a site collection are stored together in the same SQL database. A portal site often is implemented as a site collection with the top-level Web site as the Home page of the portal.

In general, when planning a solution based on Office SharePoint Server 2007, put each of the following types of sites or portal sites in separate site collections:

· Portal sites

· All team sites related to a portal site or Internet site

· Internet sites (production)

· Internet sites (staging)

· Records Repository sites

· Managed Document Repository sites

3. What Workflow capabilities does SharePoint 2007 have?

Office SharePoint Server 2007 includes out-of-the-box workflows that address primary content management needs, such as reviewing or approving documents for publication, along with specialized workflows for tracking issues, managing multiple language translations of content.

Workflows implement business processes on:

  • Documents
  • Web pages
  • List items

For example, a workflow can route a document for review, track an issue through its various stages of resolution, or guide a contract through an approval process.

You can create custom workflows using Microsoft SharePoint Designer.

4. What is a Shared Service Provider (SSP)?

An SSP represents a set of services that can be configured a single time and shared across many different portal sites. After you have finished installing SharePoint, you must explicitly create and configure one or more SSPs to take advantage of MOSS features such as user profiles, audiences, My Sites, Excel Services, the Business Data Catalog, and search. After creating an SSP through the Central Administration pages, you can then configure the individual MOSS services you need from the main SSP administration page. For example, it's possible to create two different SSPs within the same server farm, each with its own configuration. Within a MOSS 2007 farm, each Web application is associated with exactly one SSP. One Web application can be associated with one SSP while a different Web application can be associated with a second SSP. The MOSS portal sites and WSS team sites will use the configuration for their parent Web application. As a result, the search results from within one portal site might be very different from the search results within another portal site if they are associated with different SSPs that have been configured to have different content sources.

5. What is information taxonomy?

An information architecture, also known as a taxonomy for your organization, is simply a structured outline of key concepts and groups of content in your organization. An information architecture provides a framework for implementing specific capabilities of Microsoft Office SharePoint Server 2007.

For the content and content needs you identified in your content survey, think about how that content fits into the overall conceptual organization of your organization. Use that to create a detailed outline of your organization’s content. Start by dividing content needs into large conceptual buckets, based on key business processes or projects, and then break each high-level concept, process, or project into more detail at successive levels.

Different subject matter experts will be involved in identifying key concepts in the information architecture at different levels of the organization, and the process will happen in successive waves of planning over time, so it is not necessary to plan everything at once or by a small team from the top down. Often, one team will sketch out the information architecture for the central portal site and leave the details of the information architecture at the division level to a separate content planning team within each division.

After identifying the important concepts and placing them in a logical hierarchy, you can then take specific content from your survey and organize it within those important concepts. After you have the structure and content identified, you can use the information architecture to plan feature implementation for a complete solution using Office SharePoint Server 2007

Information architecture planning can be a relatively quick process for small organizations or a highly specialized process involving teams of experts for very large organizations. The goal is the same in either case: to figure out how content needs translate into key business concepts and implementation of the features of Office SharePoint Server 2007.

6. What are User Profiles?

User profiles are a MOSS 2007 feature that has been carried over from SPS 2003 to track information about the users within an organization. Information about people can come from Microsoft products and technologies such as Exchange, Active Directory, and SQL Server. It can come from industry standards for tracking people such as LDAP. It can also come from line-of-business applications such as SAP. This enables you to bring all the properties from these diverse data sources together to create unified and consistent user profiles across the organization.

The properties and data from these sources are stored in user profiles managed by Profile Services. User profiles identify connections between people such as common managers, workgroups, group membership, and sites. In this way the relationship between people in an organization can be used to encourage more efficient collaboration with colleagues and across teams. This collaboration includes the ability for people to find each other using people-specific search features.

User profiles and user profile properties can also be used in implementing personalization features such as building My Sites and content targeting. User profiles are more than just groupings of imported and custom properties about people in your organization. The properties are also used in the public page of My Site to display information about the relationships of each person to other people and content in your organization. This also includes a list of documents shared by each person, and the policies that define how information about people is displayed and shared. Profiles allow users to learn more about the people they work with and see how everyone fits into their company's organization chart. User profiles also provide the foundation for other MOSS features such as audience targeting and personal sites. Once you have configured the user profile service through an SSP, MOSS stores the data for user profiles in Microsoft SQL Server. MOSS 2007 makes it possible to import and synchronize user profile data from external sources such as an Active Directory® domain as well as other LDAP-based identity management systems.

MOSS 2007 provides several standard pages and Web Parts to display the information tracked within user profiles. The MOSS object model provides an API to read and modify user profile data from components such as Web Parts, event handlers, and custom workflows. User profiles can be extended with custom properties to track user data for domain-specific business solutions. However, MOSS 2007 enhances custom properties by allowing for multivalued properties and properties defined with open or closed vocabularies.

When it's time to write custom code against a user profile, you can program against the UserProfileManager to load and inspect the property values for a specific user.


7. What are Audiences?

By using target audiences, you can display content such as list or library items, navigation links, and entire Web Parts to specific groups of people. This is useful when you want to present information that is relevant only to a particular group of people. For example, you can add a Web Part to the legal department's portal site that contains a list of legal contracts that is visible only to that department.

Any item in a SharePoint list or library can be targeted to specific audiences. To do this, you use the Content Query Web Part. Any other type of Web Part and its contents also can be targeted to audiences.

You can create an audience by specifying criteria to define a subset of users. For example, you can create a Sales audience that is defined as all the users who are members of an Active Directory group named Sales. Once you have defined an audience, you can then configure a Web Part to conditionally display its content only when the current user is a member of that audience. Audience targeting is a great way to show privileged users links to secured pages while hiding these links from non-privileged users who would receive Access Denied errors when attempting to follow them. This makes it straightforward to target content to those users who need it while hiding that content from users who either don't want to or shouldn't see it.

An audience can be identified by using a SharePoint group, a distribution list, a security group, or a global audience. On the Web page that contains the Web Part, on the Site Actions menu, click Edit Page. On the Web Part, click the Web Part menu, and then click Modify Shared Web Part. Under Advanced, enter one or more audience names in the Target Audiences box. To enable audience targeting on the list or library, click Settings, and then click List Settings or Document Library Settings. Under General Settings, click Audience targeting settings. Select the Enable audience targeting check box. After you enable the list or library for audience targeting, you can set individual items in the list or library to be displayed to one or more audiences. Click the arrow next to the name of an item in the list or library, and then click Edit Properties. In the Target Audiences list, add one or more audiences.


8. What are the Search Capabilities?

Search makes it possible to search through, not only content and documents within portal sites and WSS team sites, but also through external content such as Windows file shares, public Exchange folders, and standard Web sites. MOSS 2007 search makes it possible to search external content across the network such as Windows file shares and Business Data Catalog (BDC) data, while WSS search is limited to searching within the current site collection.

MOSS 2007 search can be configured to run the indexing service and search service on different servers within a farm to increase scalability and throughput. WSS search is limited to running the indexing service and search service on the same physical server.

Configuring MOSS 2007 search is an administrative exercise that entails creating and configuring content sources within the scope of a particular SSP. A content source defines a set of searchable content. When you create a new SSP, MOSS 2007 automatically creates a content source to search through user profile data as well as the content and documents within MOSS and WSS sites in the Web applications associated with the current SSP. However, the SSP administrator must explicitly create and configure additional content sources to support building indexes and searching through external content such as documents in a Windows file share or content from a public Web site.

9. What is the Business Data Catalog?

The BDC is a new framework that provides MOSS 2007 portal sites and standard WSS 3.0 sites with integration into back-end line-of-business systems such as those created by SAP, Seibel, and PeopleSoft. The BDC additionally provides the means to integrate data directly from database systems such as SQL Server and Oracle.

The BDC enables you to integrate data from back-end systems without requiring custom code for managing connections and retrieving data. The BDC design is based on standardized metadata that describes the location and format of a back-end system and data entities defined within it. The BDC also provides an execution component that is capable of reading BDC metadata and that is able to retrieve external data from back-end systems and return that data to MOSS in a standardized format. Connectivity between the BDC and traditional line-of-business systems is achieved by using standard Web services. Connectivity between the BDC and database systems is achieved by using ADO.NET providers.


The first step in using the BDC is to author an XML file containing the metadata to connect to a back-end system. When you author metadata for the BDC, you define the data you want to retrieve in terms of entities. For example, you might define a customer as one entity and an invoice as another entity. The BDC metadata format also lets you define associations between entities in scenarios when there is a one-to-many relationship such as one that might exist between customers and invoices.

10. How to Customize or Add onto existing SharePoint functionality.

Development in SharePoint is two-fold:

Content Development - Done with SharePoint Designer. Includes modifications to master pages, cascading style sheet (CSS) files, layouts, etc. Considered by some to be “development”. All of these types of “artifacts” are stored within SharePoint itself. Still need knowledge of how ASP.NET works, but is mostly just configuring and laying out existing web parts. Not much custom code written, but still very complex.

Web Part/Assembly Development – build actual .NET Assemblies outside of the SharePoint environment. Much more complicated – requires knowledge of .NET Framework, ASP.NET, and SharePoint.

It is critical to understand that content development is very different from traditional development (such as Web Part/Assembly Development). A significant difference between traditional development and content development relates directly to how the physical coordination of multiple developers conducting simultaneous content development is achieved. The guidance to establish a single authoring environment for multiple content developers is particularly significant. The reasoning behind this concept is that the migration and merging of master pages, style sheets, and other content objects can be extremely problematic. SharePoint Server does not have a direct method of conducting merges between these objects, as they are considered content, not code. Additionally, moving these items among multiple authoring environments is extremely difficult to manage and coordinate for multiple team members. Thus, a single authoring environment where multiple content developers can use SharePoint Designer to create and publish content simplifies time spent in migrating content artifacts from separate environments into a production environment.

Details are available here: http://msdn2.microsoft.com/en-us/library/bb428899.aspx#MOSS2007TeamDev_AnatomyofaSharePointServerSolution

(**content in this document is mostly from Microsoft’s page")

Ten things you should know about SharePoint master pages

Here are some random interesting notes about master pages in SharePoint Server 2007 and Windows SharePoint Services 3.0:

  1. The first thing you should know about how master pages work in SharePoint is how the "default.master" is used. Default.master is found in the 12 Hive underneath TEMPLATE\GLOBAL\default.master. An instance of this file is created everytime a new site is created in SharePoint.
  2. Content pages are referring to a master page using 2 different types of tokens: dynamic tokens and static tokens. About dynamic tokens: developers can modify variables in code that change the location of the master page - by changing the MasterUrl (~masterurl/default.master) or CustomMasterurl (~masterurl/custom.master) property. Static tokens point to a certain location where you master page should be found - ~site/custom.master - points to the master page gallery of the current website. ~sitecollection/custom.master - points to the master page gallery of the current site collection. For more info take a look at Customizing master pages in Windows SharePoint Services.
  3. Administration pages such as viewlsts.aspx, create.aspx etc ... use a different masterpage called application.master which resides in the _layouts folder and so therefore occurs once per installation of SharePoint. So, you will not be able to modify this one on a per site basis
  4. When you need to create a new master page, start off from one of the minimal master pages - remember though that there is a difference between the master pages for publishing sites and collaboration sites (they have different placeholders- use the Minimal or Base Master Pages guide from Heather Solomon or How to: Create a minimal master page)
  5. There are a number of ways you can add your own master pages to MOSS - the most modular and flexible approach is by using feature. The nice thing here is that you can create a feature callout event which allows you to change the SPWeb.MasterUrl property from default.master to your custom master page.
  6. The master page for a Meeting Workspace is a little different then the one for other WSS sites - it uses 3 special controls which are used to display the tab controls.
  7. Did you know that you can link a master page to a specific site definition? You can do this by specify the MasterUrl property of the Configuration node in ONET.XML e.g. . Remember that you will also need to provision the master page at site creation by using the Modules section in ONET.XML -
  8. Be carefull of using inline code blocks in master pages. The code blocks will work fine as long as your masterpage does not get customized. Once it gets customized (e.g. by using SharePoint Designer) it will run in safemode which does not allow inline code. You can override this setting by altering the web.config and adding an extra PageParserPath -
  9. Have you seen the mysterious SharePoint DelegateControl in a lot of master pages? These define regions in your master page for which you can substitute the content with your own controls. You can replace what is shown in a delegate control by define a Control element within a feature for more info take a look at Use your ASP.NET webcontrol in MOSS 2007 with SharePoint delegate control.
  10. There is a feature for WSS 3.0 which you can download from CodePlex to manage your Master Page as well - take a look at Stramit SharePoint 2007 Master Picker.

MOSS:Back up and Restore Site Collection / Sites Using STSADM Utility Export / Import

STSADM.EXE utility export and import operations are used to backup and restore site collections and sites. These operations are limited to site collections and sites only.
STSADM.EXE is usually located at “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN”. No GUI interface for the STSADM utility is available. The old and trusted command line is used for the utility.
The backup contains library content, list content, navigation, user information, security settings, personalize settings like views and content types and customization but does not contain alerts, workflows and properties.
BACKUP
For backup, we use export operation which has the following syntax:
stsadm -o export
-url
-filename
[-overwrite]
[-includeusersecurity]
[-haltonwarning]
[-haltonfatalerror]
[-nologfile]
[-versions] <1-4>
[-cabsize]
[-nofilecompression]
[-quiet]
Parameter
Description
url
URL of the site collection / site
filename
Name of the backup file
overwrite
Overwrite the already existed backup file
includeusersecurity
Maintain the security settings
haltonwarning
Stop the export operation when a warning occur
haltonfatalerror
Stop the export operation when an error occur
nologfile
No log file will be generated at the end of the export operation.
versions
Values ranges from 1 to 41- Default value, last major versions of the files and list items included.2- The current version, either the major or the last minor version included.3- Last major and last minor version of the files and list items included.4- All versions of the files and list items included.
cabsize
Value ranges from 1 to 1024. set the total size of cabinet file. Once size limit is reached, another cabinet file is created.
nofilecompression
Disable file compression. If compression is allowed, export operation can increase by 30%
quiet
Export operation information will not be displayed and operation will end with success message.
The command that I use to run is
stsadm –o export –url htpp://URL –filename E:\backup\test.cab –includeusersecurity –versions 4 –cabsize 1024 –nofilecompression
This command will create a directory test.cab.
RESTORE
First you have to create an empty website to restore. This can be done using Microsoft Office SharePoint Designer 2007.
For this, open Microsoft Office SharePoint Designer 2007 and move from File menu to New and click on Web Site. In the New Dialog box, select Web Site tab, then select General and then Empty Web Site. Give the desired URL in the text box at the bottom of the dialog box and click OK. Microsoft Office SharePoint Designer 2007 will create a new empty web site.
To restore, we use import operation which has the following syntax:
stsadm -o import
-url
-filename
[-includeusersecurity]
[-haltonwarning]
[-haltonfatalerror]
[-nologfile]
[-updateversions] <1-3>
[-nofilecompression]
[-quiet]
Parameter
Description
url
URL of the site
filename
Name of the restore file
includeusersecurity
Maintain the security settings
haltonwarning
Stop the export operation when a warning occur
haltonfatalerror
Stop the export operation when an error occur
nologfile
No log file will be generated at the end of the export operation.
updatversions
Values ranges from 1 to 31 Default value, will add new version to the current file.2 Overwrite the file and all of its versions.3 Ignore the file if it exists of the destination.
nofilecompression
Either enables or disables file compression in the import package. The import package is stored in the folder specified by the -filename parameter. It is recommended to use this parameter for performance reasons. If compression is enabled, it can increase the import process by approximately 30%.
quiet
Export operation information will not be displayed and operation will end with success message.
The command that I use to run is
stsadm –o import –url htpp://URL –filename E:\backup\test.cab –includeusersecurity –updateversions 3 –nofilecompression
Exception:
Error occurred while exporting the web http://site URL
Access is denied.(Eception from RESULT:0×8007005(E_ACCESSDENIED))
Reason:
You are not the administrator of the site collection.
Resolution:
Add yourself as site administrator. For this, open SharePoint Central Administration. Move from “Application Management” to “Site collection administrators” under “SharePoint Site Management”. Add yourself as administrator in the appropriate site collection.

http://office.microsoft.com/download/afile.aspx?AssetID=AM102424831033

http://technet2.microsoft.com/Office/en-us/library/1178aa35-20b1-45b0-bcb6-4249aa34ea481033.mspx?mfr=true

http://technet2.microsoft.com/Office/en-us/library/65788bb9-0345-42c8-a216-e99e558b173d1033.mspx?mfr=true

Code Blocks are Not Allowed in this File - Sharepoint

i have this issuse while ruuning my site in net server.its working fine in local intranet...
The Error seems we can not use server side scripts in sharepoint..
If anyone know about this pblm, plz let me knw...

Thanx in Advance....
paps.......