O'Reilly logo

SharePoint 2010 at Work by Mark Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

XSLT List View Web Part Hyperlinks

Every view in SharePoint 2010 is an XSLT List View web part. This means that all List views and List web parts can be added, edited, and removed via either the browser or SharePoint Designer. Now that some URL fundamentals have been covered, it’s time to start with a series of step-by-step walkthroughs.

SharePoint List

In this walkthrough, a new view will be created and modified, starting with the Contacts list.

  1. On your Chapter 5 test site in the browser, click Site Actions and choose Edit in SharePoint Designer.

  2. In the Navigation pane on the left, click Lists and Libraries.

  3. Click the name of the Contacts list.

  4. On the right side in the Views section (as shown in Figure 5-3), click New.

    The New view button

    Figure 5-3. The New view button

  5. Name this view “Test List View” and click OK.

  6. Click “Test List View” to open it. Now that the view is open in SharePoint Designer, use the F12 keyboard shortcut to open the same view in the browser. In the browser, notice that the Last Name field is the default drop-down box with the list item menu.

  7. Go back to SharePoint Designer. With the cursor in the web part table (in any column), click the Add/Remove Columns button on the Options tab.

  8. Click Remove to remove all of the columns, so that the right side is empty. Add the following columns in this order: Full Name, Email Address, Job Title, and Company. Click OK when the screen looks like Figure 5-4 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required