47,99 €
Microsoft Content Management Server 2002 is a dynamic web publishing system with which you can build websites quickly and cost-efficiently. MCMS provides the administration, authoring, and data management functionality, and you provide the website interface, logic, and workflow. Microsoft SharePoint Portal Server (SPS) also features in the book. SPS 2003 enables enterprises to deploy an intelligent portal that seamlessly connects users, teams, and knowledge so that people can take advantage of relevant information across business processes to help them work more efficiently.You've mastered the basics of MCMS, and setup your own MCMS installation. You've only scratched the surface. This book is your gateway to squeezing every penny from your investment in MCMS and SPS, and making these two applications work together to provide an outstanding richness of content delivery and easy maintainability. As a developer, the Publishing API (PAPI) is at the heart of your work with MCMS, and this book starts by taking you on the most detailed tour of the PAPI you will find anywhere. As a live example, a component that reveals the structure of your MCMS site is created, taking you through how to manage the common elements of MCMS programmatically. Getting SharePoint and MCMS to work together is the next stop in the book. You will see how to use SharePoint's search engine to search MCMS content, publish content between the two systems, and create SharePoint Web Parts to draw content from MCMS.To ease your everyday work with MCMS, there are chapters on placeholder validation, and some useful custom placeholders for common MCMS tasks, such as a date-time picker, a placeholder for multiple attachments, and a DataGrid placeholder among others. There are a number of ways to consume MCMS content from the outside world, and we look at two exciting ways here; RSS and InfoPath/Web Services. The InfoPath solution provides another interface to MCMS content that allows content authors to concentrate on content and not the presentation. The book is rounded off with a number of must-have MCMS tips and tricks.
Revert a posting to a previous version
Change a posting's template
Build a recycle bin
Deal with links to deleted resources
Update a posting's properties directly from a template file
Re-write ugly URLs to friendly URLs
Export resource gallery items using the site deployment API (SDAPI)
Configure the position and size of the Web Author Console Dialogs
Get frames and IFrames to work correctly in a template file
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 730
Veröffentlichungsjahr: 2005
Working with the Publishing API, Placeholders, Search, Web Services, RSS, and SharePoint Integration
Copyright © 2005 Packt Publishing©
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First edition: November 2005
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
www.packtpub.com
Cover Design by www.visionwt.com
Authors
Lim Mei Ying
Stefan Goßner
Angus Logan
Andrew Connell
Technical Reviewers
Mick Badran
Spencer Harbar
David Mielcarek
Chester Ragel
Christopher Walker
Joel Ward
Editorial Manager
Dipali Chittar
Development Editor
Douglas Paterson
Technical Editor
Richard Deeson
Indexer
Niranjan Jahagirdar
Proofreader
Chris Smith
Production Coordinator
Manjiri Nadkarni
Cover Designer
Helen Wood
Lim Mei Ying is a Senior Consultant with Avanade and has extensive experience in setting up MCMS systems at the enterprise level. She has spent many hours figuring out the dos and don’ts of the product, and enjoys finding new ways to solve MCMS-related problems.
She contributes actively to the newsgroup community and is a Microsoft Most Valuable Professional for Content Management Server. Mei Ying lives on the sunny island of Singapore and blogs at http://meiyinglim.blogspot.com. She also co-authored the earlier book, Building Websites with Microsoft Content Management Server (ISBN: 1-904811-16-7, Packt Publishing January 2005).
Thanks to my husband, Louis, for the much needed support throughout the many months of writing. Special thanks to my family and friends for their encouragement.
Stefan Goßner works for Microsoft as an Escalation Engineer in the Developer Support department. He provides customers with technical solutions to problems related to Microsoft Internet Server Products. Stefan has a broad and deep understanding of all areas of MCMS. His contributions to the newsgroup community have helped many people implement MCMS solutions in corporations around the globe, to the point where it has been said that if you don’t know Stefan, then you’re probably new to MCMS.
He maintains a huge MCMS 2002 FAQ on the Microsoft website and provides MCMS tips and tricks on his personal blog at http://blogs.technet.com/stefan_gossner.
He lives in Munich, Germany.
I would like to thank my girlfriend, Michaela, for her support throughout months of writing, reviewing, and coding for the book. Also many thanks to my colleagues in the European Developer Support Team and to my friends in the MCMS product team in the US.
Angus Logan is a Product Specialist at Data#3 Limited (http://www.data3.com.au), Australia’s leading IT solutions company, and is a Microsoft Gold Certified Partner. Angus is a MCAD.NET and MCDBA, as well as a Microsoft Most Valuable Professional for Content Management Server. His specialities are Content Management Server, SharePoint Portal Server, .NET development, SQL Server, and Customer Relationship Management (CRM).
You can usually find Angus in the microsoft.* newsgroups or blogging (http://www.anguslogan.com).
Angus gets a real buzz from using these technologies in a presales or delivery capacity to find solutions to his customers’ real-world problems.
To my friends and family, especially Michael, thank you! Working with a great team on this book made all the time and effort worthwhile.
Andrew Connell has worked with content-management solutions since obtaining his degree from the University of Florida. As one of the original developers for the most successful versions of AdmiNET, a custom web content administration product, he has consistently focused on the challenges facing businesses today as they strive to maintain an up-to-date site without having to constantly rely on technical expertise.
Andrew’s background is in content-management solutions and web development using Microsoft technologies. He enjoys working with MCMS and integrating it with other products such as Microsoft SharePoint Products and Technologies.
As a Client/Server Consultant for Fidelity Information Services, Andrew has leveraged both MCMS and SharePoint Portal Server to redeploy Fidelity’s intranet site as a single solution that capitalizes on the best features of both products. In 2005, he was recognized as a Microsoft Most Valuable Professional for his contributions to the MCMS community.
Andrew lives in Jacksonville, Florida in the United States, and maintains a blog at http://www.andrewconnell.com/.
Thank you to my wife, Meredith, and first born son, Steven, for their patience and support. Thanks to my girls Maggie and Sadie for providing me company during the many late nights it took to finish this project. Thanks also to my parents and brother for their support and the confidence they showed in me.
We the authors would also like to thank the following people for supporting us and helping us along the way:
Our editors, Douglas Paterson and Richard Deeson, and the rest of the team at Packt for accepting our book proposal and for the wonderful work they have done in bringing this book to life.
Our project manager, Joel Ward, for his exceptional project management skills. Thanks for being there for us!
Mick Badran has been performing Microsoft technical classroom-based training for more than nine years, and has over 12 years commercial development experience in various languages. Mick has been consulting for Microsoft in areas of CMS, SPS, and BizTalk for over four years. Mick also specializes in customized training in these areas.
He can be reached at <[email protected]> and would love to hear your feedback.
Spencer Harbar is an MCSD.NET, MCSE, and MVP for MCMS, with over ten years commercial experience of architecture, design, development, deployment, and operational support of web-based applications, and hosting platforms for some of Europe’s largest organizations.
Spencer maintains http://www.mcmsfaq.com—an MCMS resources portal—and is active in the public newsgroups. His experience of MCMS goes back to the days of NCompass Resolution, and he has been involved in many enterprise implementations. Selected clients include Barclays Bank plc, ScottishPower plc, Microsoft, The Royal Bank of Scotland, Scottish Enterprise, HBOS, Centrica, BASF, and The Automobile Association.
Currently working as an independent consultant, Spencer delivers enterprise content management and portal systems architecture, design, development, and deployment solutions, application security best practices, threat modeling, and the implementation of highly available Windows Server System-based hosting platforms.
Spencer resides in Edinburgh, UK, and blogs at www.harbar.net.
David Mielcarek is employed as the Internet/Domain Administrator at Lower Columbia College in Washington State. Most of the time, he utilizes one of ten programming languages to get the job done.
Starting his career as a telecommunications cryptologist in the Air Force, he merged into the corporate world. Following a term with Lockheed, he increased his abilities by taking on larger positions. In 1994, the Internet became his mainstay, and it remains so to this day.
Juggling an educational position, outside-work through his GoldBorder.com site, and raising a family of three kids, 11 cats, two dogs, and two rats allows little time for his love of drawing. You can often find him taking his short breaks at the nearest table to pencil something in his art pad.
Chester Ragel is a Computer Professional, obtaining his degree in Computer Science and Engineering from the University of Moratuwa. He is an MCSD.NET holder, and enjoys working with Microsoft technologies.
Chester contributes to the MCMS community and several IT Magazines. He lives in Sri Lanka and can be found blogging at http://chestermr.blogspot.com.
Christopher Walker is a Senior Consultant with Microsoft Services, providing specialist advice on integrated portal solutions (SharePoint, MCMS, BizTalk, and InfoPath). Christopher has a background in portal development and technologies with Unisys and a portal software ISV.
Christopher contributes to the community through his blog at http://blogs.msdn.com/cjwalker/, providing real solutions to customers using Microsoft technologies.
Christopher lives in Brisbane, Australia.
Joel Ward works for Booz Allen Hamilton as a technical manager and developer. Joel likes to work on ASP.NET, MCMS, and SharePoint projects, and he helped create a .NET user group at Booz Allen. He has a background in design, programming, and architecture, and has worked with MCMS since its first release in 2001.
As a Microsoft Most Valuable Professional, Joel is acknowledged by peers and Microsoft for his active participation in the technical communities around the globe. Joel lives in Virginia in the United States.
Following on from Building Websites with Microsoft Content Management Server (Packt Publishing, January 2005, ISBN 1-904811-16-7), this book takes MCMS development to a higher level of both power and integration. Like its predecessor, this book is packed with code examples and never-before-seen secrets of MCMS.
Microsoft Content Management Server 2002 is a dynamic web publishing system with which you can build websites quickly and cost-efficiently. MCMS provides the administration, authoring, and data-management functionality and you provide the website interface, logic, and workflow. Microsoft SharePoint Portal Server (SPS) also features in this book. SPS 2003 enables enterprises to deploy an intelligent portal that seamlessly connects users, teams, and knowledge so that people can take advantage of relevant information across business processes to help them work more efficiently.
You’ve mastered the basics of MCMS, and have set up your own MCMS installation. But you’ve only scratched the surface. This book is your gateway to squeezing every penny from your investment in MCMS and SPS, and making these two applications work together to provide an outstanding richness of content delivery and easy maintainability.
Chapter 1 demonstrates the power of the MCMS Publishing API (PAPI) by building the CMS Explorer administration tool to manage an MCMS website. Chapter 2 builds on the CMS Explorer by adding the ability to manage channels and postings. Chapter 3 looks at the creation, submission, copying, moving, and deletion of templates, template galleries, and resources through the PAPI.
In Chapter 4, you will learn how to prepare postings for search indexing. We look at several techniques that can improve the accuracy of search results and optimize your search engine.
SharePoint Portal Technologies complement MCMS by providing collaboration, document libraries, and searching to the robust publishing workflow of MCMS. Chapter 5 takes you through the process of adding searching to an MCMS Site using SharePoint Portal Server, either using the MCMS Connector for SharePoint Technologies or by building your own solution.
Chapter 6 demonstrates how you can use the MCMS Connector for SharePoint to build your own components to share content between MCMS and SharePoint. Chapter 7 shows how you can build Web Parts that integrate content from MCMS on a SharePoint portal site.
Chapter 8 discusses five custom placeholder controls that provide some frequently requested features that are not present in the default controls: a date-time picker placeholder control, a placeholder control that permits multiple attachments, an image-rotator placeholder control, a placeholder control to store all kinds of HTML tags, and a DataGrid placeholder control.
Validation of content is a key requirement in many MCMS implementations. Chapter 9 looks at how you can apply ASP.NET validation techniques to each of the out-of-the box placeholder controls.
Static pages are often used in direct mailers, help files, and even for archiving purposes. Chapter 10 discusses a couple of techniques that you can use to create static snapshots of postings.
The authoring experience doesn’t always need to be through the browser. One author-friendly way of maintaining content is detailed in Chapter 11. In this chapter, we leverage the power of InfoPath to quickly create a GUI that allows authors to submit content directly from Microsoft Word, with the help of MCMS Web Services.
Since the release of MCMS in 2002, a lot of technologies have changed. Syndication of websites using RSS is the norm, and to capitalize on this, Chapter 12 takes you through the steps involved in creating a dynamic RSS feed of your website’s recent changes.
Finally, Chapter 13 provides many invaluable insider’s tips and tricks for MCMS, as well as solutions to common MCMS issues, including gems such as how to revert a posting to a previous version, change a posting’s template, build a recycle bin, and export resource gallery items using the Site Deployment API.
This book has been written for ASP.NET developers with a sound grasp of C#. To use this book, you need to have access to the following:
To install and run Microsoft Content Management Server 2002, you will need the following:
Some of the chapters utilize Microsoft SharePoint Portal Server 2003. For these chapters, you will need:
Feedback from our readers is always welcome. Let us know what you think about this book, what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply drop an e-mail to <[email protected]>, making sure to mention the book title in the subject of your message.
If there is a book that you need and would like to see us publish, then please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail <[email protected]>.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, then see our author guide on www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we want you to get the most from your purchase. Packt’s Customer Support is here to try to make sure that happens, and there are a number of ways we can help you.
Visit http://www.packtpub.com/support, and select this book from the list of titles to view any example code or extra resources available for download for this book.
The downloadable files contain instructions on how to use them.
Although we have taken every care to ensure the accuracy of our books’ contents, mistakes do happen. If you find a mistake in one of our books—be it a mistake in text or a code error—we would be grateful if you could report this to us. By doing this you can save other readers from frustration, and also help to improve subsequent versions of this book.
To report any errata you find, visit http://www.packtpub.com/support, select your book, click on the Submit Errata link, and enter the details of your errata. Once your errata have been verified, your submission will be accepted and added to the list of existing errata. The existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.
The Building Websites with Microsoft Content Management Server book (Packt Publishing, January 2005, ISBN 1-904811-16-7) makes extensive use of MCMS’s Publishing Application Programming Interface (PAPI). We show how to use it to provide custom functionality within template files, to add business processes to workflow events, to tailor the Web Author Console, and to implement forms authentication for the Tropical Green site, which the reader builds as they progress through the book.
The PAPI is in fact a huge library. You could code with it for months and still find new tricks you never knew existed! This is the first of three chapters that compliment the understanding you will have gained from the book and attempt to take your understanding of the PAPI to another level. Follow along as we demonstrate several highly useful techniques and show how they can be leveraged in a real-world scenario, as we apply them to the Tropical Green site.
Where can I download a copy of the Tropical Green website?
The code files for the Tropical Green website created over the course of the earlier book are available as a download package on this book’s download page. Go to the Packt website at http://www.packtpub.com/support/, and choose Advanced Microsoft Content Management Server Development in the dropdown.
We put some serious thought into creating an example that would not only give you a thorough grounding in the more advanced methods available in the PAPI but would also leave you with a tool that you will find handy in your day-to-day MCMS work. From our own experiences as MCMS developers working in the time-critical world of the software industry, one thing that we have found invaluable has been a custom MCMS administrative tool. In the first three chapters of this book, we walk you through the process of building such a tool, which we will name CMS Explorer.
Here’s how CMS Explorer will look once completed:
The interface is made up of two sections:
For navigation, you can move in two directions: click on the name of the container to see what’s in it, or use the Up button on the toolbar to move up one level.
Why build a tool when the out-of-the box-solution provides not one, but three tools to manage MCMS objects? There’s already a Site Manager and the Web Author as well as the Template Explorer available within Visual Studio .NET. There are several reasons why building the CMS Explorer tool is worthwhile:
You can download the entire sample from the code download section of the Packt site, at http://www.packtpub.com/support/.
Let’s start by creating a work area for the CMS Explorer tool. Create a new Visual C# MCMS Web Application Project in Visual Studio .NET.
