• Aucun résultat trouvé

Creating Lists and Libraries

Dans le document Microsoft SharePoint Designer 2010 (Page 107-111)

Just as you base a new site on a site template, you base a new list or library on a list tem-plate . When you select a list temtem-plate, you refer either to files on the file systems of the SharePoint Web servers or to a template file in the List Template gallery, which is stored in the Microsoft SQL Server database . Each list is created using one or more content types .

SharePoint Foundation 2010 and SharePoint Server 2010 provide a number of built-in list definitions that you can use as a basis for SharePoint lists and libraries . When you use the browser, the list definitions are grouped into four categories: Libraries, Communications, Tracking, and Custom Lists . When you use SharePoint Designer 2010, the list defini-tions appear in the New group on the Lists And Libraries ribbon tab and are grouped as Custom List, SharePoint List, Document Library, External List, and List From Spreadsheet . A number of lists cannot be created by using the browser and can be seen only if you create a site from a specific site template or activate a specific feature . For example, the Circulations, Holidays, Time Card, Phone Call Memo, and Whereabouts list types are available only if you create a site based on the Group Work Site template or have acti-vated the Group Work Lists site-level feature . Similiarly, in SharePoint Server 2010, if you create a site based on the Visio Process Repository site template, a Process Diagrams document library is created that has six content types attached . However, nothing stops you from creating a list template from this document library and creating your own li-braries based on that list template . The group of lists created with the Group Work Site template would be more complex to reproduce because of dependencies between the different lists .

Tip List templates can be created by using the list settings page in the browser or with the Save As Template command in the Manage group on the Lists And Libraries tab in SharePoint Designer.

After you create a list or library, you can perform tasks such as the following in the browser:

View, add, modify, or delete list items, documents, or metadata .

Modify list-level or item-level permissions .

Add, delete, or modify columns .

Add, delete, or modify content types .

Create views to allow multiple perspectives on the list’s or library’s data .

Create a list template from a list, including its content .

See Also More information on working with lists and libraries in the browser can be found in Chapter 4, “Working with Lists,” and Chapter 5, “Working with Libraries,” in Microsoft SharePoint Foundation 2010 Step by Step by Olga Londer and Penelope Coventry (Microsoft Press, 2011).

With SharePoint Designer, you cannot create or modify list items or the metadata as-sociated with documents; however, unlike in the previous version, in SharePoint Designer 2010 you can create or modify list permissions, content types, columns, and site columns by using the list settings page that is displayed in the workspace when you click a list or library from the Lists or Library gallery page or the mini-gallery .

The list settings page is divided into eight areas:

List Information Provides key information about a list, such as the name, descrip-tion, list ID, the date that the list was last modified, and the number of items that the list contains .

Customization Use to edit list columns and manage the permissions of the list .

Settings Use to set the general settings of a list, such as displaying the list in the browser on the Quick Launch Toolbar or hiding the list from the browser so that it does not appear on the All Site Content page .

Content Types Use to manage the association of content types with the list or library .

Views Use to manage or create new list views . List views are pages that display the contents of a list . By default, most lists and libraries contain at least one view page, All Items, that displays all items in the list . Some lists contain a number of view pages, such as the tasks list, which is provided with six view pages by default: Active Tasks, All Tasks, By Assigned To, By My Groups, Due Today, and My Tasks .

Forms Use to manage and create list forms . By default, most lists or libraries con-tain at least three forms:

DispForm .aspx to display the properties of a list item .

EditForm .aspx to edit the properties of a list item .

NewForm .aspx to create a new list item .

Workflows Use to manage and create new list workflows .

Custom Actions Use to create and manage custom actions you have added to the list item menu or on the server ribbon you see on form pages when you use the browser .

In this exercise, you create a Wiki Page library, an Issue Tracking list, and a list from an Excel worksheet . You also change the default settings of the lists and library .

SET UP Using SharePoint Designer, open the team site you created and modified in earlier chapters. If you did not create a team site yet, follow the steps in Chapter 1 before you start this exercise.

1.

In the Navigation pane, click Lists and Libraries .

The Lists And Libraries gallery page is displayed in the workspace .

2.

On the Lists and Libraries tab, click Document Library in the New group, and then click Wiki Page Library .

The Create List Or Document Library dialog box opens .

Documen Library

3.

In the Name box, type Wiki Pages, and then click OK to close the dialog box . The name that you type in the Name box is used to create the URL as well as the title of the library .

See Also For information about good naming conventions, see the sidebar “Best Practices for Naming URLs” in Chapter 1, “Exploring SharePoint Designer 2010.”

The Wiki Pages library appears under Document Libraries on the gallery page . Tip If you want to change the URL of a list or library, in the All Files mini-gallery or in the All Files gallery page, right-click the list or library, and then click Rename. All references to the old URL will be replaced with the new URL. However, if users have bookmarked or created hyperlinks to the list or library, these continue to point to the old URL. Renaming the list or library in the Lists And Library gallery page renames the title of the list or library but does not change the URL of the list or library.

4.

Click Wiki Page .

The list settings page opens in the workspace and the Lists And Libraries mini-gallery appears below the Navigation pane .

5.

In the List Information area, click Wiki Pages to the right of Name, type Company History, and then press Enter .

An asterisk appears on the Wiki Pages tab, indicating that the library settings have changed but you have not saved your changes .

6.

Click <click to enter text> to the right of Description, and type This wiki page library contains a set of Wiki pages that describes the history of our com-pany, and then press Enter .

7.

In the Settings area, under Advanced Settings, select the Require content ap-proval for submitted items check box . On the Quick Access Toolbar, click Save . The asterisk disappears from the tab, and the tab is now labeled Company History . In the Lists And Library mini-gallery, the wiki library is listed under Document Libraries as Company History . In the List Information area, the Web address can be seen to include Wiki Pages .

Note This Wiki library will still be listed as Wiki Pages in the All Files gallery and mini-gallery.

Save

CLEAN UP Leave SharePoint Designer open if you are continuing to the next exercise.

Dans le document Microsoft SharePoint Designer 2010 (Page 107-111)