Tải bản đầy đủ (.pdf) (552 trang)

Professional Microsoft Office SharePoint Designer 2007 pdf

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (16.48 MB, 552 trang )

Professional
Microsoft
®
Office
SharePoint
®
Designer 2007
www.wrox.com
$49.99 USA
$54.99 CAN
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.
Recommended
Computer Book
Categories
Programming
Software Development
ISBN: 978-0-470-28761-3
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.
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.
What you will learn from this book
● 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.
Microsoft
®
Office
SharePoint
®
Des igner 2007
Windischman,
Phillips, Rehmani
Professional
subtitle

spine=1.104"
Updates, source code, and Wrox technical support at www.wrox.com
Professional
Microsoft
®
Office
SharePoint
®
Designer 2007
Woodrow W. Windischman, Bryan Phillips, Asif Rehmani
Wrox Programmer to Programmer
TM
Wrox Programmer to Programmer
TM
www.it-ebooks.info
Professional
Microsoft
®
Office
SharePoint
®
Designer 2007
Enhance Your Knowledge
Advance Your Career
Professional Mic rosoft O ffice ShareP oint Designer
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 SharePoint 20 07 Development
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 SharePoint 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 2007 Administration: Wi ndows Sh arePoint Services 3.0 and Mi crosoft Of fice
SharePoint Server 2007
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 Solutions with M OSS 2007
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.
Get more out of
WROX.com
Programmer to Programmer

Interact
Take an active role online by participating in
our P2P forums
Wrox Online Library
Hundreds of our books are available online
through Books24x7.com
Wrox Blox
Download short informational pieces and
code to keep you up to date and out of
trouble!
Chapters on Demand
Purchase individual book chapters in pdf
format
Join the Community
Sign up for our free monthly newsletter at
newsletter.wrox.com
Browse
Ready for more Wrox? We have books and
e-books available on .NET, SQL Server, Java,
XML, Visual Basic, C#/ C++, and much more!
Contact Us.
We always like to get feedback from our readers. Have a book idea?

Need community support? Let us know by e-mailing
spine=1.104"
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 SharePoint and ShareP oint Designer 489
Index 497
ffirs.indd iffirs.indd i 11/20/08 9:38:34 AM11/20/08 9:38:34 AM
www.it-ebooks.info
ffirs.indd iiffirs.indd ii 11/20/08 9:38:35 AM11/20/08 9:38:35 AM
www.it-ebooks.info
Professional
Microsof t
®
SharePoint
®
Designer 2007
ffirs.indd iiiffirs.indd iii 11/20/08 9:38:35 AM11/20/08 9:38:35 AM
www.it-ebooks.info
ffirs.indd ivffirs.indd iv 11/20/08 9:38:35 AM11/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 vffirs.indd v 11/20/08 9:38:35 AM11/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 />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 viffirs.indd vi 11/20/08 9:38:36 AM11/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 viiffirs.indd vii 11/20/08 9:38:36 AM11/20/08 9:38:36 AM
www.it-ebooks.info
ffirs.indd viiiffirs.indd viii 11/20/08 9:38:36 AM11/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 (
) 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
(

). 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 ixffirs.indd ix 11/20/08 9:38:36 AM11/20/08 9:38:36 AM
www.it-ebooks.info
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 called Professional Microsoft SharePoint 2007
Design (Wrox), and his blog is located at
. 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 client -
based, 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.
About the Authors /Technical Editors
x

ffirs.indd xffirs.indd x 11/20/08 9:38:36 AM11/20/08 9:38:36 AM
www.it-ebooks.info
Acquisitions Editor
Katie Mohr
Development Editor
Maryann Steinhart
Technical Editor s
Jacob Sanford
Coskun Cavusoglu
Arif Ilhan Kolko
Production Editor
Kathleen Wisor
Copy Editor
Foxxe Editorial Services
Editorial Manager
Mary Beth Wakefield
Production Manager
Tim Tate
Vice President and Executive Group Publisher
Richard Swadley
Vice President and Executive Publisher
Joseph B. Wikert
Project Coordinator, Cover
Lynsey Stanford
Proofreader
Nancy Carrasco
Indexer
Jack Lewis
Credits
ffirs.indd xiffirs.indd xi 11/20/08 9:38:36 AM11/20/08 9:38:36 AM

www.it-ebooks.info
ffirs.indd xiiffirs.indd xii 11/20/08 9:38:37 AM11/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 xiiiffirs.indd xiii 11/20/08 9:38:37 AM11/20/08 9:38:37 AM
www.it-ebooks.info
ffirs.indd xivffirs.indd xiv 11/20/08 9:38:37 AM11/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 3
Page Editor 6
Design View 7
Visual Aids 7
Table-Editing Tools 9
Page Sizes and Browser Preview 11
Code View 14
IntelliSense and More 15
Visual Coding 18
Script Editor 19
Split View 20
Toolbars and Task Panes 21
Managing Toolbars and Task Panes 22
Toolbars 24
General-Purpose Task Panes 24
SharePoint-Specific Task Panes 26
Web Site (Str uctural) V iews 26

Files and Folders 26
Remote Web Site 27
Reporting Tools 28
Navigation and Hyperlinks 29
Summary 32
Chapter 2: ShareP oint from the User’ s Perspective 33
A Default ShareP oint Home P age 33
SharePoint Content: Lists, Libraries, and More 35
List and Library Types 36
Customizing Lists and Libraries 39
ftoc.indd xvftoc.indd xv 11/20/08 9:40:09 AM11/20/08 9:40:09 AM
www.it-ebooks.info
Contents
xvi
Columns (Fields) 39
Content Types 40
Understanding Views 41
Web Parts 42
In the Zone 43
Some Standard Web Parts 46
Making the Connection 47
Summary 48
Chapter 3: ShareP oint from the Administrator’ s Perspective 49
On the Site 49
Users and Permissions 51
Being a User 52
Group Think 54
Look and Feel — Navigational Elements and More 56
Galleries 58
On the Ser ver 59

Central Administration 60
The File Structure 62
The STSADM Command 62
The SharePoint Databases 63
The Configuration Database 63
The Content Databases 63
Summary 65
Chapter 4: ShareP oint from a ShareP oint Designer’s Perspective 67
Navigating a ShareP oint Site 67
Opening a SharePoint Site 67
Identifying Components 69
Libraries, Lists, and Content Types 70
Libraries 71
Lists 72
Content Types 73
Galleries 73
Workflows 75
List and Librar y Proper ties 75
The Settings Tab 76
The Security Tab 77
The Supporting Files Tab 78
ftoc.indd xviftoc.indd xvi 11/20/08 9:40:09 AM11/20/08 9:40:09 AM
www.it-ebooks.info
Contents
xvii
Contributor Settings 78
Contributor Settings versus Permission Levels 80
Configuring Contributor Settings 81
Contributor Groups 81
Region Types 85

Summary 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 89
Here, There, and Everywhere 90
Ramifications and Reversion 91
Lost Ties 91
Performance 92
Back to the Future 92
The Special Case of the _la youts Folder 93
Web Part Pages 94
Master of Their Own Destiny 94
Inside a Content Page 96
List and Library View Pages 98
SharePoint Master P ages — A Deep Dive 99
The Default Style Sheets 99
The Bare Necessities 100
Content Regions 101
The Very Least You Can Do 105
SharePoint: Functional Stuff 107
A Not-So-Minimal Master, from Head to Toe 108
Sight Unseen 109
The Global Navigation Bar 110
Site (Global) Title Area 112
Top (Tab) Navigation Area 113
Page Edit Bar 115
Page Title Area 116
Left Navigation Bar 117
Main Body Area 121
More No-See-Ums 122

Summary 122
ftoc.indd xviiftoc.indd xvii 11/20/08 9:40:09 AM11/20/08 9:40:09 AM
www.it-ebooks.info
Contents
xviii
Chapter 6: Using ShareP oint Designer’s CSS Editing T ools 123
What Are Cascading Style Sheets? 123
Styling versus Formatting Objects 123
CSS Code Placement 124
Riding the Cascade: Inheritance and Overrides 125
A Touch of Class 126
CSS in ShareP oint 126
Preexisting CSS Files in SharePoint Server 127
Style Sheets Can Be Stored in Multiple Locations 128
Styles in the Content Database 128
Styles on the Web Server 129
Saving Styles to an External Location 129
Working with Style in ShareP oint Designer 129
Page-Editing Options 130
SharePoint Designer’s Task Panes and Toolbars 132
Identify Your Style 133
Create Your Own Style 137
Checking Your Work 144
Summary 146
Chapter 7: The Anatom y of a Theme 147
What Are ShareP oint Themes? 147
SharePoint’s Themes 149
Where Themes Live — The 12 Hive 150
A Look Inside a Theme Folder 152
How to Declare Themes 153

Use SharePoint Designer to Explore and Customize Themes 154
Exploring a Theme Once It’s Applied to a Site 154
Run CSS Report to Pinpoint Usage of the Styles 156
Customize the Theme 158
Change the Global Breadcrumb Background Color 158
Change Font Color of Global Links 160
Publishing the Modified Theme 163
A Customized Theme, from Head to T oe 166
Page Banner and Background 166
Global Breadcrumb and My Site Link 167
Global Links — Welcome and My Links 167
Site Logo 168
Site Title 168
ftoc.indd xviiiftoc.indd xviii 11/20/08 9:40:10 AM11/20/08 9:40:10 AM
www.it-ebooks.info
Contents
xix
Search Controls 169
Global Navigation 169
Site Actions Menu 170
Page Navigation Breadcrumb 171
Quick Launch Navigation Area 171
Tree View Pane 173
Web Parts 174
List or Library Description Text 175
Calendar List 175
Bottom Area of the Master Page 177
Title Area of a Web Part Page 178
New Items Toolbar 178
Form Field Background 179

Toolbar for Lists and Libraries 180
Summary 180
Chapter 8: Master P ages and Layouts 183
Web Content Management in ShareP oint 183
When SPS Met CMS 184
Publishing Sites: The Key to WCM 184
Master Pages Revisited 185
What You Get with the Default Installation of MOSS 186
Creating a Master Page for a Publishing Site Using SharePoint Designer 188
Create the .master File 189
Building the Master Page ’ s Preview Image 191
Publishing the Master Page 192
Apply the Master Page to the Site 193
Lay Out Y our Page Layout 195
Page Layouts That Come with SharePoint Server 195
Content Types — At the Heart of It All 196
Creating a Content Type for a Page Layout 197
Create Page Layouts Using SharePoint Designer 199
Field Controls 202
Web Part Zones 205
Building the Page Layout’s Preview Image 206
Save the Layout Page 206
Create Publishing P ages Based on P age Layouts 207
Decoupling a P age from a P age Layout 210
Summary 211
ftoc.indd xixftoc.indd xix 11/20/08 9:40:10 AM11/20/08 9:40:10 AM
www.it-ebooks.info
Contents
xx
Part III: Applications without Programming 213

Chapter 9: Building Y our Own W orkflows 215
Introducing the W orkflow Designer 215
Creating a New Workflow 216
Example Workflow 217
Editing an Existing Workflow 222
Workflow Elements in Detail 224
Start Options 224
Initiation Parameters 226
Initiation Form 227
Variables 228
Steps 229
Conditions 229
Actions 231
Core Actions 232
List Actions 234
Task Actions 235
Changing a Workflow 237
SharePoint Designer W orkflow Considerations 239
Limitations 239
Ramifications and Cautions 240
Summary 241
Chapter 10: W orking with ShareP oint Data 243
List V iew Revisited 244
List V iew Control Menu 246
Fields 247
Change Layout 247
Sort and Group 249
Sorting 249
Grouping 249
Filter 251

Introducing the XSL T Data V iew 251
Converting a List View 252
Changes for the User 252
Changes in SharePoint Designer 253
Reverting 253
The Data Source Library 254
Creating a Data View from the Data Source Library 254
ftoc.indd xxftoc.indd xx 11/20/08 9:40:11 AM11/20/08 9:40:11 AM
www.it-ebooks.info
Contents
xxi
Making Connections 257
What Is a Web Part Connection? 257
Creating a Web Part Connection 257
The Send Options 258
The Get Options 259
Selecting a Target 259
Mapping Source and Target Entities 259
Defining the Trigger 260
Data V iew Editing Basics 261
Table for One (One Row, That Is . . . ) 261
Conditional Formatting 261
Conditional Formatting Actions 262
Setting the Condition(s) 263
Modifying the Data View Properties 263
XSLT in Brief 264
Location, Location, Location… 265
The XPath Expression Builder 266
Summary 269
Chapter 11: Advanced Data Access: Exter nal Data and More 271

The Data Source Librar y in Detail 271
The Data Source Types 272
Adding and Modifying Data Sources 273
SharePoint Lists and Libraries 274
Database Connections 275
XML Files 276
Server-Side Scripts 277
XML Web Services 278
Business Data Catalog 280
Connecting to Other Libraries 281
Sites in the Same Site Collection 281
Sites in a Different Site Collection 282
Linking Data Sources 282
Working with Hierarchical Data 284
Create the Data Source 284
Insert the Web Part 286
Insert and Customize the Subview 289
Get Connected 291
Exploring Further 292
More about the Business Data Catalog 293
Data V iews on the Mo ve 293
Summary 294
ftoc.indd xxiftoc.indd xxi 11/20/08 9:40:11 AM11/20/08 9:40:11 AM
www.it-ebooks.info
Contents
xxii
Chapter 12: W orking with F orms 295
SharePoint Designer’s Form Tools 295
Traditional Web Forms 297
HTML Forms and Legacy FrontPage Webbots 297

Creating an HTML Form 297
Assigning a Back-End Processing Action 299
Classic FrontPage Processing — The SaveResults Webbot 301
ASP.NET Data Forms 302
Working Locally 302
Enabling the ASP.NET Development Server 302
Configuring a Database Connection 304
Connecting Controls to a Data Source 306
SharePoint Data F orms 308
Multimode Data Views 308
Custom List and Library Forms 311
Creating a New List or Library Form 312
New Item Form 313
Display and Edit Forms 313
Using Your Form(s) 315
Return to Sender 316
Summary 318
Part IV: Programming on the Client Side 319
Chapter 13: The Content Editor W eb Part 321
What Is the Content Editor W eb Part? 321
Rich Text Editor 323
Source Editor 324
External Content 325
Rendering 325
A Simple Example 325
Preparation 326
The Change 327
The Content Editor in ShareP oint Designer 328
Design View: The Page within a Page 328
Code View: XML Strikes Back 330

Customized Search Results: A Complete P age Example 331
Create the Page 332
Add the Web Parts 333
Prepare the Content Editor 335
ftoc.indd xxiiftoc.indd xxii 11/20/08 9:40:11 AM11/20/08 9:40:11 AM
www.it-ebooks.info
Contents
xxiii
Modify the Core Results 336
Attach the Results to the Query Web Part 338
Tokens of Affection 339
The _WPQ_ Token 339
The _LogonUser_ Token 340
The _WPID_ Token 341
The _WPR_ Token 341
A Few T ips and Tricks 341
Keep It Simple 341
Use the Script Editor 341
Create a Shell Page 341
Keep CEWPs Portable 342
Summary 343
Chapter 14: The ShareP oint Client-Side Object Model 345
What Is the W eb Part Page Ser vices Component? 345
Page Initialization 346
Page Services 346
WPSC Child Objects 346
WebPartPage Object 347
WPSC Collections 347
Parts Collection and Part Object 348
Properties Collection and Property Object 351

The Web Part Page Event Model 354
Registering for an Event 355
System Events 356
Raising Your Own Events 358
Changing the Preview Web Part 358
Changing the Results XSL 359
Special Event Functions 359
Connection Events 359
Prompted Save 359
Web Part Storage 360
The Properties Collection 360
Into the Ether: Saving Changes, Or Not 361
A Simple Property Update Example 361
PartStorage: Your Very Own Property 363
One for All? 363
Beyond the WPSC 364
Accessing Page Components via the DOM 364
Other Client-Side Objects 364
ftoc.indd xxiiiftoc.indd xxiii 11/20/08 9:40:12 AM11/20/08 9:40:12 AM
www.it-ebooks.info

×