Tải bản đầy đủ

89 professional microsoft office sharepoint designer 2007

spine=1.104"

www.it-ebooks.info
Wrox Programmer to Programmer TM

Wrox Programmer to Programmer TM

Professional
Microsoft Office
®

SharePoint Designer 2007
®

Microsoft Office SharePoint Designer 2007 is a versatile application that
provides all the necessary tools to modify nearly every aspect of a SharePoint
web site’s look and feel. Yet, SharePoint Designer can do far more than just
customize SharePoint sites and this book shows you how to maximize the
potential of this fully featured web design tool.

Professional


®

● Ways to create extensions to SharePoint and SharePoint Designer, with
examples in both C# and Visual Basic .NET
● Techniques for customizing lists, libraries, and more
● How to maximize your use of SharePoint Site Components
● The anatomy of SharePoint master pages and themes
● Methods for working with CSS editing tools in SharePoint Designer
● How to use Visual Studio and other tools to extend the capabilities of
SharePoint and SharePoint Designer
● Things to consider when building SharePoint Designer workflows
● Considerations for governing the use of SharePoint Designer in your
enterprise

Enhance Your Knowledge
Advance Your Career

Who this b ook is f or

This book is for web designers and developers who are looking to modify or enhance SharePoint products and technologies or
anyone upgrading from Microsoft FrontPage to SharePoint Designer. A basic knowledge of JavaScript and HTML tags is assumed.
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers,
developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They
provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.

www.wrox.com

$49.99 USA
$54.99 CAN

Programming
Software Development

ISBN: 978-0-470-28761-3

®

Microsoft Office


What you will learn from this book

SharePoint Designer 2007

Packed with step-by-step examples, sample code, and helpful screen shots,
this resource begins with an overview of SharePoint Designer and SharePoint
technology and then quickly moves on to teach you how to use SharePoint
Designer to customize various aspects of your sites. The team of experienced
authors demonstrates how SharePoint Designer is able to create powerful
applications that would have normally required considerable programming
effort, and they take you past the built-in features of SharePoint Designer with
extensions, add-ins, migration, and conversion tools. With this book, you’ll be
able to perfectly match a SharePoint site to an enterprise’s standards, connect
SharePoint with other enterprise resources, or create something entirely new.

Recommended
Computer Book
Categories

Windischman,
Phillips, Rehmani

Professional
Microsoft Of fice
®

SharePoint
Designer 2007
®

subtitle

Woodrow W. Windischman, Bryan Phillips, Asif Rehmani

Updates, source code, and Wrox technical support at www.wrox.com


spine=1.104"

www.it-ebooks.info

Programmer to Programmer™

Get more out of
WROX.com
Interact

Chapters on Demand

Take an active role online by participating in
our P2P forums

Purchase individual book chapters in pdf
format

Wrox Online Library

Join the Community

Hundreds of our books are available online
through Books24x7.com

Sign up for our free monthly newsletter at
newsletter.wrox.com

Wrox Blox

Browse

Download short informational pieces and
code to keep you up to date and out of
trouble!

Ready for more Wrox? We have books and
e-books available on .NET, SQL Server, Java,
XML, Visual Basic, C#/ C++, and much more!

Professional
Microsoft Office
®

SharePoint Designer 2007
®

Professional Mic rosoft O ffice ShareP oint De signer
2007

978-0-470-28761-3
Packed with step-by-step examples, sample code, and helpful screen
shots, this resource begins with an overview of SharePoint Designer
and SharePoint technology and then quickly moves on to teach you
how to use SharePoint Designer to customize various aspects of your
sites.

Real World SharePoint 20 07: Indisp ensable
Experiences from 16 M OSS and WS S MV Ps

978-0-470-16835-6
This anthology of the best thinking on critical SharePoint 2007 topics
is written by SharePoint MVPs—some of the best and most recognized
experts in the field. Some of the topics they cover include: Branding,
Business Data Connector, Classified Networks, Forms-based
authentication, Information Rights Management, and Zones and
Alternate Access Mapping.

Professional Share Point 20 07 Development

Enhance Your Knowledge
Advance Your Career

978-0-470-11756-9
A thorough guide highlighting the technologies in SharePoint 2007
that are new for developers, with special emphasis on the key areas
of SharePoint development: collaboration, portal and composite
application frameworks, enterprise search, ECM, business process/
workflow/electronic forms, and finally, business intelligence.

Professional ShareP oint 20 07 Web Cont ent
Management Development

978-0-470-22475-5
Use this book to learn such things as optimal methods for embarking
on web content management projects, ways to implement sites with
multiple languages and devices, the importance of authentication and authorization, and how to customize the SharePoint
authoring environment.

Beginning SharePoint 200 7 A dministration: Wi ndows Sh arePoint Se rvices 3 .0 and Mi crosoft Of fice
SharePoint Se rver 2007

Contact Us.

We always like to get feedback from our readers. Have a book idea?
Need community support? Let us know by e-mailing wrox-partnerwithus@wrox.com

978-0-470-12529-8
SharePoint MVP Göran Husman walks you through everything from planning and installation to configuration and administration
so you can begin developing a production environment.

Beginning SharePoint 20 07: B uilding Team Solution s with M OSS 20 07

978-0-470-12449-9
This book provides detailed descriptions and illustrations of the functionality of SharePoint as well as real-world scenarios,
offering coverage of the latest changes and improvements to Microsoft Office SharePoint Server 2007.


www.it-ebooks.info

Professional Microsof t® SharePoint® Designer 2007
Introduction ..............................................................................................

xxvii

Part I: The Basics
Chapter 1: Exploring ShareP oint Designer .......................................................3
Chapter 2: ShareP oint from the User’ s Perspective ........................................33
Chapter 3: ShareP oint from the Administrator’ s Perspective ...........................49
Chapter 4: ShareP oint from a ShareP oint Designer’s Perspective ....................67

Part II: Customizing the ShareP oint Look and F eel
Chapter 5: The Anatom y of a ShareP oint Page ...............................................89
Chapter 6: Using ShareP oint Designer’s CSS Editing T ools ...........................123
Chapter 7: The Anatom y of a Theme ............................................................147
Chapter 8: Master P ages and Layouts .........................................................183

Part III: Applications without Programming
Chapter 9: Building Y our Own W orkflows .....................................................215
Chapter 10: W orking with ShareP oint Data ..................................................243
Chapter 11: Advanced Data Access: Exter nal Data and More .......................271
Chapter 12: W orking with F orms .................................................................295

Part IV: Programming on the Client Side
Chapter 13: The Content Editor W eb Part ....................................................321
Chapter 14: The ShareP oint Client-Side Object Model ..................................345

Part V: Be yond SharePoint Designer
Chapter 15: Creating W orkflow Elements in V isual Studio ............................375
Chapter 16: Creating Custom W eb Parts .....................................................407
Chapter 17: Creating ShareP oint Designer Add-ins .......................................435
Chapter 18: A Little Administration .............................................................463
Appendix A: A Brief Histor y of ShareP oint and ShareP oint Designer ............. 489
Index ........................................................................................................
497

ffirs.indd i

11/20/08 9:38:34 AM


www.it-ebooks.info

ffirs.indd ii

11/20/08 9:38:35 AM


www.it-ebooks.info

Professional

Microsof t® SharePoint® Designer 2007

ffirs.indd iii

11/20/08 9:38:35 AM


www.it-ebooks.info

ffirs.indd iv

11/20/08 9:38:35 AM


www.it-ebooks.info

Professional

Microsof t® SharePoint® Designer 2007
Woody Windischman
Bryan Phillips
Asif Rehmani

Wiley Publishing, Inc.

ffirs.indd v

11/20/08 9:38:35 AM


www.it-ebooks.info

Professional Microsof t® SharePoint® Designer 2007
Published by
Wiley Publishing, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com

Copyright © 2009 by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-0-470-28761-3
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
Library of Congress Cataloging-in-Publication Data is available from the publisher.
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any
means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under
Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the
Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center,
222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for
permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd.,
Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions.
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or
warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim
all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may
be created or extended by sales or promotional materials. The advice and strategies contained herein may
not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged
in rendering legal, accounting, or other professional services. If professional assistance is required, the services
of a competent professional person should be sought. Neither the publisher nor the author shall be liable for
damages arising herefrom. The fact that an organization or Website is referred to in this work as a citation
and/or a potential source of further information does not mean that the author or the publisher endorses the
information the organization or Website may provide or recommendations it may make. Further, readers
should be aware that Internet Websites listed in this work may have changed or disappeared between when
this work was written and when it is read.
For general information on our other products and services please contact our Customer Care Department
within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related
trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the
United States and other countries, and may not be used without written permission. Microsoft and
SharePoint are registered trademarks of Microsoft Corporation in the United States and/or other countries.
All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with
any product or vendor mentioned in this book.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be
available in electronic books.

ffirs.indd vi

11/20/08 9:38:36 AM


www.it-ebooks.info

For my Mom and Dad, who have always
encouraged me to follow my dreams…
—Woody
To my family, Susan, Gabriel, and Sarina,
whose patience and support have allowed me
to contribute to this book.
—Bryan
To my uncle Jowhar, who has always inspired
and supported me to get me
where I am today.
—Asif

ffirs.indd vii

11/20/08 9:38:36 AM


www.it-ebooks.info

ffirs.indd viii

11/20/08 9:38:36 AM


www.it-ebooks.info

About the Author s
Woodrow (Woody) Windischman is a technology trainer and consultant with more than 20 years’
experience in a variety of roles, allowing him to see problems holistically and come up with appropriate
solutions. His SharePoint experience started even before SharePoint became a product, with predecessors
such as Site Server, the Digital Dashboard Resource Kit, and the earliest versions of Microsoft FrontPage.
Since then Woody’s been deeply involved in the SharePoint community—first having been awarded
Microsoft SharePoint MVP from October 2005 through September 2007, and then working directly for
the SharePoint product team. He’s active in several online SharePoint communities, including the
TechNet forums.
Bryan Phillips is a software architect and senior partner with Composable Systems, LLC, specializing in
service-oriented business solutions using the latest Microsoft technology. Bryan has worked
professionally with Microsoft development technology since 1997 and holds the Microsoft Certified
Trainer (MCT), Microsoft Certified Solution Developer (MCSD), Microsoft Certified Database
Administrator (MCDBA), and Microsoft Certified Systems Engineer (MCSE) certifications. Bryan
contributes regularly to the Microsoft development community by speaking on topics such as Smart
Client, ASP.NET, SharePoint, SQL Server, and Mobile development; presenting DevCares courses; and
blogging on topics of interest to developers. Bryan is a Microsoft Most Valuable Professional (MVP) in
Client Application Development.
Asif Rehmani has been a Trainer and a Consultant working out of the Chicago office of SharePoint
Solutions (http://sharepointsolutions.com/chicago) since early 2005. He is a SharePoint Server
MVP and MCT.
Asif runs a SharePoint eLearning website (http://sharepoint-elearning.com), which provides
numerous SharePoint Video Tutorials on various topics within SharePoint.
He has been a speaker on SharePoint topics at several conferences over the years, including Microsoft
SharePoint Conference, SharePoint Connections, Advisor Live, and the Information Workers Conference.
Also, he is one of the founders and active current leaders of the Chicago SharePoint User Group
(http://cspug.org). For a more detailed bio, please visit http://sharepoint-elearning.com/
Pages/Bio.aspx.

About the T echnical Editor s
Jacob J. Sanford began his career in, of all things, accounting and auditing. He graduated from Florida
State University in 1997 with B.S. degrees in accounting and finance, which made him eligible to sit for
the CPA exam. Although he realized in college that he was more interested in computers and technology,
he decided to give accounting a chance. It didn’t last. He had been dabbling in HTML and VBA when he
took a job at a private software company and met David Drinkwine, who introduced him to the wonders
of classic ASP. From there, he began learning as much as he could about all kinds of web application
development, including ColdFusion, PhP, PhotoShop, CSS, XML, and finally ASP.NET (starting in the 1.0
and 1.1 release). He has been using ASP.NET (VB and C#—but mostly C#) for the last four or five years.
He has worked at several State of Florida agencies and, in that capacity, found a fondness for pure CSS
design and accessibility considerations. Most recently, he has started focusing on new technologies and
tools such as Microsoft Silverlight and Visual Studio 2008.

ffirs.indd ix

11/20/08 9:38:36 AM


www.it-ebooks.info

About the Authors/Technical Editors
Jacob is currently a Senior Consultant with Captaré Consulting, LLC, and is the founding leader of the
Tallahassee SharePoint Experts Exchange for Developers (SPEED). He is a regular presenter at regional
.NET Code Camps and at local .NET User Group meetings and is the author of Professional ASP.NET 2.0
Design (Wrox) and one of the authors of Professional SharePoint 2007 Design (Wrox).
Jacob lives in Tallahassee, Florida, with his beautiful wife, Shannan. He has two amazing sons, Matthew
and Hayden, and an eternal puppy, Petey.
Coskun Cavusoglu is the Director of Consulting Services and the Chief Solution Architect of Captaré
Consulting, LLC (www.captare.com). He has been architecting and implementing technology solutions
for more than 10 years in both large, enterprise organizations and fast-growth midmarket firms. Coskun
consults on a variety of business process practices. He has a broad range of expertise in areas such as
knowledge management, business process analysis, collaboration, project management, office
productivity, and application programming. As a software engineer specializing in the .NET Framework
and the Office Server System, specifically Windows SharePoint Services and Microsoft Office SharePoint
Server, he has extensive experience designing, implementing, and supporting Internet solutions using
Microsoft technologies such as SharePoint, CRM, Project Server, Windows Server, Active Directory,
Exchange, IIS, and ASP .NET 2.0/3.5.
Coskun is a technology writer, a blogger, and a published author on Microsoft server products. His latest
book, which he coauthored with fellow SharePoint experts, is calledProfessional Microsoft SharePoint 2007
Design (Wrox), and his blog is located at http://sharepointblogs.com/gnarus. He also is a speaker
who attends various community events, both local and international, where he talks about various
SharePoint topics, and his past and future engagements can be found at his blog.
Coskun is a Microsoft Certified Professional and is also a Microsoft Certified Technology Specialist for
SharePoint Portal Server 2003 and Microsoft Office SharePoint Server 2007.
Arif Ilhan Kolko earned a B.S. degree in Industrial Engineering from Purdue University, and then
moved to Chicago, Illinois, to start his professional career at Chicago Metallic Corporation, an
international manufacturing company, as a quality/manufacturing engineer. The companies he has
worked for as an engineer and manager include the Coca-Cola Company, Pirelli Tire Company, and
Networked Concepts.
Looking to merge his development skills and experience with his career interest in conducting clientbased, time-sensitive projects, Ilhan joined Captaré Consulting, LLC, in October 2007. He currently
serves as a Senior Consultant and the Vendor Management Office (VMO) Representative. In his
professional career, Ilhan has successfully managed and delivered several process optimization, quality
systems development, lean manufacturing, capital investment justification, process simulation, business
development, product-system innovation, and web application design and development projects. Ilhan
has been a certified Six Sigma Green Belt since 2004 and a Microsoft Certified Professional Developer
(MCPD) since Spring 2008.
Ilhan received his first master ’s degree, summa cum laude, from DePaul University, in Marketing
Analysis. He is planning to start working toward his MBA degree in Operations Management by
January 2009 at a school to be decided.

x

ffirs.indd x

11/20/08 9:38:36 AM


www.it-ebooks.info

Credits
Acquisitions Editor

Production Manager

Katie Mohr

Tim Tate

Development Editor

Vice President and Executive Group Publisher

Maryann Steinhart

Richard Swadley

Technical Editor s

Vice President and Executive Publisher

Jacob Sanford
Coskun Cavusoglu
Arif Ilhan Kolko

Joseph B. Wikert

Production Editor
Kathleen Wisor

Copy Editor
Foxxe Editorial Services

Editorial Manager

Project Coordinator , Cover
Lynsey Stanford

Proofreader
Nancy Carrasco

Indexer
Jack Lewis

Mary Beth Wakefield

ffirs.indd xi

11/20/08 9:38:36 AM


www.it-ebooks.info

ffirs.indd xii

11/20/08 9:38:37 AM


www.it-ebooks.info

Acknowledgments
Every writer needs a first book, and this is mine. While I never thought it would be easy, I have learned
that a lot more goes into the planning, writing, and publishing of a work like this than you might guess.
It was definitely not a solo effort, and I would like to express my deepest appreciation to the many
people who helped make it possible. In particular, I would like to thank: Jerome Thiebaud, Product
Manager for Microsoft Office SharePoint Designer, for encouraging me to pursue this; Katie Mohr and
Maryann Steinhart of Wiley, for giving me the opportunity, helping to guide me through the process, and
putting up with innumerable delays; and especially Bryan Philips (chapters 15–17) and Asif Rehmani
(chapters 6–8) for joining me as coauthors to overcome some of those delays.
—Woody
I would like to thank Woody Windischman for giving me the opportunity to contribute to this book. I
have always wanted to share my knowledge and experience with others, and this book is an excellent
vehicle to do so.
I would also like to thank Todd Bleeker for his information on converting SharePoint Designer
workflows for use in Visual Studio. His time and effort in developing those techniques have reduced my
time on this book.
Finally, I would like to thank Jacob Sanford and Coskun Cavusoglu for their meticulous technical editing
and review of my work. As this is my first published work, their patience and guidance are greatly
appreciated.
—Bryan
First and foremost, I thank God for all the opportunities that have been sent my way throughout my life
to get me to this point. In terms of mortals, I would like to first thank my beautiful wife, Anisa, for her
support and understanding throughout the writing process. I know it wasn’t easy putting up with my
schedule at times, but I appreciate that you did. Also, thanks to my wonderful boys, Armaan and Ayaan,
who always put a smile on my face when I need it the most. Thanks to my parents for the hardworking
genes that they have passed on to me, which always keep me going.
On a professional note, I would like to thank Katie Mohr with Wiley Publishing for giving me the chance
to contribute to this book project. Also, thanks to AC for referring me to Katie. I owe you one! A special
thanks to my mentors and friends at SharePoint Solutions, Jeff Cate and Kevin Pine. The support and
encouragement you have provided me through the years, to help me sharpen my instructional skills and
business acumen, have not gone unnoticed. Thank you.
—Asif

ffirs.indd xiii

11/20/08 9:38:37 AM


www.it-ebooks.info

ffirs.indd xiv

11/20/08 9:38:37 AM


www.it-ebooks.info

Contents
Introduction xxvii

Part I: The Basics

1

Chapter 1: Exploring ShareP oint Designer

3

SharePoint Designer as a W eb Editor
Page Editor
Design View
Visual Aids
Table-Editing Tools
Page Sizes and Browser Preview

Code View
IntelliSense and More
Visual Coding
Script Editor

Split View

Toolbars and T ask Panes
Managing Toolbars and Task Panes
Toolbars
General-Purpose Task Panes
SharePoint-Specific Task Panes

7
7
9
11

14
15
18
19

20

21
22
24
24
26

Web Site (Str uctural) V iews

26

Files and Folders
Remote Web Site
Reporting Tools
Navigation and Hyperlinks

26
27
28
29

Summary

Chapter 2: ShareP oint from the User’ s Perspective
A Default ShareP oint Home P age
SharePoint Content: Lists, Libraries, and More
List and Library Types
Customizing Lists and Libraries

ftoc.indd xv

3
6

32

33
33
35
36
39

11/20/08 9:40:09 AM


www.it-ebooks.info

Contents
Columns (Fields)
Content Types
Understanding Views

Web Parts
In the Zone
Some Standard Web Parts
Making the Connection

Summary

Chapter 3: ShareP oint from the Administrator’ s Perspective
On the Site
Users and Permissions
Being a User
Group Think

Look and Feel — Navigational Elements and More
Galleries

On the Ser ver
Central Administration
The File Structure
The STSADM Command
The SharePoint Databases
The Configuration Database
The Content Databases

Summary

Chapter 4: ShareP oint from a ShareP oint Designer’s Perspective
Navigating a ShareP oint Site
Opening a SharePoint Site
Identifying Components
Libraries, Lists, and Content Types
Libraries
Lists
Content Types

Galleries
Workflows

39
40
41

42
43
46
47

48

49
49
51
52
54

56
58

59
60
62
62
63
63
63

65

67
67
67
69
70
71
72
73

73
75

List and Librar y Proper ties

75

The Settings Tab
The Security Tab
The Supporting Files Tab

76
77
78

xvi

ftoc.indd xvi

11/20/08 9:40:09 AM


www.it-ebooks.info

Contents
Contributor Settings
Contributor Settings versus Permission Levels
Configuring Contributor Settings
Contributor Groups
Region Types

Summary

78
80
81
81
85

86

Part II: Customizing the ShareP oint Look and F eel

87

Chapter 5: The Anatom y of a ShareP oint Page

89

Bits and Pieces
Here, There, and Everywhere
Ramifications and Reversion
Lost Ties
Performance
Back to the Future

The Special Case of the _la youts F older
Web Part Pages
Master of Their Own Destiny
Inside a Content Page
List and Library View Pages

SharePoint Master P ages — A Deep Dive
The Default Style Sheets
The Bare Necessities
Content Regions
The Very Least You Can Do
SharePoint: Functional Stuff

A Not-So-Minimal Master, from Head to Toe
Sight Unseen
The Global Navigation Bar
Site (Global) Title Area
Top (Tab) Navigation Area
Page Edit Bar
Page Title Area
Left Navigation Bar
Main Body Area
More No-See-Ums

89
90
91
91
92
92

93
94
94
96
98

99
99
100
101
105
107

108
109
110
112
113
115
116
117
121
122

Summary 122

xvii

ftoc.indd xvii

11/20/08 9:40:09 AM


www.it-ebooks.info

Contents
Chapter 6: Using ShareP oint Designer’s CSS Editing T ools
What Are Cascading Style Sheets?
Styling versus Formatting Objects
CSS Code Placement
Riding the Cascade: Inheritance and Overrides
A Touch of Class

CSS in ShareP oint
Preexisting CSS Files in SharePoint Server
Style Sheets Can Be Stored in Multiple Locations
Styles in the Content Database
Styles on the Web Server
Saving Styles to an External Location

Working with Style in ShareP oint Designer
Page-Editing Options
SharePoint Designer’s Task Panes and Toolbars
Identify Your Style
Create Your Own Style
Checking Your Work

123
123
123
124
125
126

126
127
128
128
129
129

129
130
132
133
137
144

Summary 146

Chapter 7: The Anatom y of a Theme
What Are ShareP oint Themes?
SharePoint’s Themes
Where Themes Live — The 12 Hive
A Look Inside a Theme Folder
How to Declare Themes

Use SharePoint Designer to Explore and Customize Themes
Exploring a Theme Once It’s Applied to a Site
Run CSS Report to Pinpoint Usage of the Styles
Customize the Theme
Change the Global Breadcrumb Background Color
Change Font Color of Global Links

147
147
149
150
152
153

154
154
156
158
158
160

Publishing the Modified Theme
A Customized Theme, from Head to T oe

163
166

Page Banner and Background
Global Breadcrumb and My Site Link
Global Links — Welcome and My Links
Site Logo
Site Title

166
167
167
168
168

xviii

ftoc.indd xviii

11/20/08 9:40:10 AM


www.it-ebooks.info

Contents
Search Controls
Global Navigation
Site Actions Menu
Page Navigation Breadcrumb
Quick Launch Navigation Area
Tree View Pane
Web Parts
List or Library Description Text
Calendar List
Bottom Area of the Master Page
Title Area of a Web Part Page
New Items Toolbar
Form Field Background
Toolbar for Lists and Libraries

169
169
170
171
171
173
174
175
175
177
178
178
179
180

Summary 180

Chapter 8: Master P ages and Layouts
Web Content Management in ShareP oint
When SPS Met CMS
Publishing Sites: The Key to WCM

Master P ages Revisited
What You Get with the Default Installation of MOSS
Creating a Master Page for a Publishing Site Using SharePoint Designer
Create the .master File
Building the Master Page’s Preview Image
Publishing the Master Page
Apply the Master Page to the Site

Lay Out Y our Page Layout
Page Layouts That Come with SharePoint Server
Content Types — At the Heart of It All
Creating a Content Type for a Page Layout
Create Page Layouts Using SharePoint Designer
Field Controls
Web Part Zones
Building the Page Layout’s Preview Image
Save the Layout Page

Create Publishing P ages Based on P age Layouts
Decoupling a P age from a P age Layout
Summary 211

183
183
184
184

185
186
188
189
191
192
193

195
195
196
197
199
202
205
206
206

207
210

xix

ftoc.indd xix

11/20/08 9:40:10 AM


www.it-ebooks.info

Contents
Part III: Applications without Programming
Chapter 9: Building Y our Own W orkflows
Introducing the W orkflow Designer

213
215
215

Creating a New Workflow
Example Workflow
Editing an Existing Workflow

216
217
222

Workflow Elements in Detail

224

Start Options
Initiation Parameters
Initiation Form
Variables
Steps
Conditions
Actions
Core Actions
List Actions
Task Actions

Changing a Workflow

SharePoint Designer W orkflow Considerations
Limitations
Ramifications and Cautions

224
226
227
228
229
229
231
232
234
235

237

239
239
240

Summary 241

Chapter 10: W orking with ShareP oint Data
List V iew Revisited
List V iew Control Menu
Fields
Change Layout
Sort and Group
Sorting
Grouping

Filter

Introducing the XSL T Data V iew
Converting a List View
Changes for the User
Changes in SharePoint Designer
Reverting

The Data Source Library
Creating a Data View from the Data Source Library

243
244
246
247
247
249
249
249

251

251
252
252
253
253

254
254

xx

ftoc.indd xx

11/20/08 9:40:11 AM


www.it-ebooks.info

Contents
Making Connections
What Is a Web Part Connection?
Creating a Web Part Connection
The Send Options
The Get Options
Selecting a Target
Mapping Source and Target Entities
Defining the Trigger

Data V iew Editing Basics
Table for One (One Row, That Is . . . )
Conditional Formatting
Conditional Formatting Actions
Setting the Condition(s)

Modifying the Data View Properties

XSLT in Brief
Location, Location, Location…
The XPath Expression Builder

257
257
257
258
259
259
259
260

261
261
261
262
263

263

264
265
266

Summary 269

Chapter 11: Advanced Data Access: Exter nal Data and More
The Data Source Librar y in Detail
The Data Source Types
Adding and Modifying Data Sources

271
271
272
273

SharePoint Lists and Libraries
Database Connections
XML Files
Server-Side Scripts
XML Web Services
Business Data Catalog

274
275
276
277
278
280

Connecting to Other Libraries

281

Sites in the Same Site Collection
Sites in a Different Site Collection

Linking Data Sources

Working with Hierarchical Data
Create the Data Source
Insert the Web Part
Insert and Customize the Subview
Get Connected
Exploring Further

More about the Business Data Catalog
Data V iews on the Mo ve
Summary 294

281
282

282

284
284
286
289
291
292

293
293

xxi

ftoc.indd xxi

11/20/08 9:40:11 AM


www.it-ebooks.info

Contents
Chapter 12: W orking with F orms

295

SharePoint Designer’s Form Tools
Traditional Web Forms

295
297

HTML Forms and Legacy FrontPage Webbots
Creating an HTML Form
Assigning a Back-End Processing Action
Classic FrontPage Processing — The SaveResults Webbot

ASP.NET Data Forms
Working Locally
Enabling the ASP.NET Development Server
Configuring a Database Connection
Connecting Controls to a Data Source

SharePoint Data F orms
Multimode Data Views
Custom List and Library Forms
Creating a New List or Library Form
New Item Form
Display and Edit Forms
Using Your Form(s)
Return to Sender

297
297
299
301

302
302
302
304
306

308
308
311
312
313
313
315
316

Summary 318

Part IV: Programming on the Client Side
Chapter 13: The Content Editor W eb Part
What Is the Content Editor W eb Part?
Rich Text Editor
Source Editor
External Content
Rendering
A Simple Example
Preparation
The Change

The Content Editor in ShareP oint Designer
Design View: The Page within a Page
Code View: XML Strikes Back

Customized Search Results: A Complete P age Example
Create the Page
Add the Web Parts
Prepare the Content Editor

319
321
321
323
324
325
325
325
326
327

328
328
330

331
332
333
335

xxii

ftoc.indd xxii

11/20/08 9:40:11 AM


www.it-ebooks.info

Contents
Modify the Core Results
Attach the Results to the Query Web Part

Tokens of Affection
The
The
The
The

_WPQ_ Token
_LogonUser_ Token
_WPID_ Token
_WPR_ Token

336
338

339
339
340
341
341

A Few T ips and T ricks

341

Keep It Simple
Use the Script Editor
Create a Shell Page
Keep CEWPs Portable

341
341
341
342

Summary 343

Chapter 14: The ShareP oint Client-Side Object Model
What Is the W eb Part Page Ser vices Component?
Page Initialization
Page Services
WPSC Child Objects
WebPartPage Object
WPSC Collections
Parts Collection and Part Object
Properties Collection and Property Object

The Web Part Page Event Model
Registering for an Event
System Events
Raising Your Own Events
Changing the Preview Web Part
Changing the Results XSL

Special Event Functions
Connection Events
Prompted Save

Web Part Storage
The Properties Collection
Into the Ether: Saving Changes, Or Not
A Simple Property Update Example

PartStorage: Your Very Own Property
One for All?

Beyond the WPSC
Accessing Page Components via the DOM
Other Client-Side Objects

345
345
346
346
346
347
347
348
351

354
355
356
358
358
359

359
359
359

360
360
361
361

363
363

364
364
364

xxiii

ftoc.indd xxiii

11/20/08 9:40:12 AM


Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay

×
x