Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Advanced Microsoft Content Management Server Development
Advanced Microsoft Content Management Server Development

Advanced Microsoft Content Management Server Development: Working with the Publishing API, Placeholders, Search, Web Services, RSS, and Sharepoint Integration

eBook
₱2424.99 ₱2694.99
Paperback
₱3367.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Advanced Microsoft Content Management Server Development

Chapter 2. Managing Channels and Postings with the PAPI

In the previous chapter we used the MCMS Publishing API to create a web-based CMS management application called CMS Explorer. CMS Explorer provides a web interface for viewing the properties of channels, postings, templates, template galleries, resources, and resource galleries. In this chapter we will dig deeper into our examination of the PAPI by inserting additional functionality to manage channels and postings.

Managing Channels and Postings

Imagine a scenario where you have been asked to move contents of a legacy web portal to MCMS. The portal contains hundreds of channels and thousands of postings. One option is to hire someone to manually create the channels and postings, copying and pasting the HTML content from the old pages to the new postings and approving each and every one of them. That’s definitely a viable solution but let’s imagine hiring is not an option and despite the generous offer of...

Managing Channels and Postings


Imagine a scenario where you have been asked to move contents of a legacy web portal to MCMS. The portal contains hundreds of channels and thousands of postings. One option is to hire someone to manually create the channels and postings, copying and pasting the HTML content from the old pages to the new postings and approving each and every one of them. That’s definitely a viable solution but let’s imagine hiring is not an option and despite the generous offer of free doughnuts and coffee, none of your co-workers are willing to take on the task. So it comes down to you, and you are understandably a little horrified at the scale of the task. Fortunately, rather than doing all the work manually, you can write a script to automate the task.

Another use of the Publishing API could be to perform complex actions such as: “When Channel A is created, postings B, C and D must be automatically created in Channel E.” However complex the scenario may be, you can customize...

Creating Postings


Just like channels, postings can also be created programmatically using the PAPI. To see how this is done, we will create a dialog for creating postings in CMS Explorer:

  1. 1. Add a new web form to the CMSExplorer solution, and name it CreatePosting.aspx.

  2. 2. In Design view, drag and drop the Styles.css file from Solution Explorer onto the form. This applies the stylesheet to the page.

  3. 3. Toggle to HTML view and insert the following code for a table with six rows:

    <table>
    <tr>
      <td colspan="2">
        <h1>Create Posting</h1>
        <h2>Parent Channel: (Add Literal for displaying the path here)</h2>
      </td>
    </tr>
    <tr>
      <td>Name:</td>
      <td>(Add the text box for the Name here)</td>
    </tr>
    <tr>
      <td>Description:</td>
      <td>(Add the text box for the Description here)</td>
    </tr>
    <tr>
      <td>Template Path:</td>
      <td>(Add the text box for the...

Copying Postings


Postings can be copied from one channel to another or even to the same channel. Unlike connected postings, postings that are created from the copy action exist as independent entities. They do not share placeholder values, and so changes to the properties of the original posting do not affect the copy in any way.

Copying can be done using the Posting.CopyTo() method. Let’s create a Copy Posting dialog for CMS Explorer:

  1. 1. Add a new web form to the CMSExplorer project. Name the new web form CopyPosting.aspx.

  2. 2. In Design view, drag and drop the Styles.css file from Solution Explorer onto the form. This applies the stylesheet to the page.

  3. 3. Toggle to HTML view and add the code as shown below for a table with four rows, between the <form> tags:

    <table>
    <tr>
      <td colspan="2">
        <h1>Copy Posting</h1>
        <h2>Original Path: (Add Literal for displaying the path here)</h2>
      </td>
    </tr>
    <tr>
      <td>Destination...

Moving Postings


You can change the parent container of a posting by moving it. Postings can be moved in both the Web Author (using the Move Posting option) and Site Manager (dragging and dropping postings from one channel to another). Once moved, postings require moderator approval if any are assigned for the destination channel.

The PAPI provides the Posting.MoveTo() method to move postings using code. One common application of the method is to automatically approve postings that are moved. When reorganizing large numbers of postings, it is often quicker to write a script to automate the move and to approve them immediately instead of performing these steps manually.

To see how the Posting.MoveTo() method is used within code, we’ll create a Move Posting dialog for CMS Explorer:

  1. 1. Add a new web form to the CMSExplorer project. Name the new web form MovePosting.aspx.

  2. 2. In Design view, drag and drop the Styles.css file from Solution Explorer onto the form.

  3. 3. Toggle to HTML view. Add the following...

Summary


In this chapter we used the MCMS Publishing API (PAPI) to add additional functionality to our CMS Explorer management application. We demonstrated how the PAPI can be used to create new channels and postings as well as copying or moving postings from one channel to another channel. In the next chapter, we will look at the ability to manage templates, template galleries, resources, and resource galleries with the PAPI as we continue to enhance the CMS Explorer.

Left arrow icon Right arrow icon

Key benefits

  • Learn directly from recognized community experts
  • Extensive coverage of the Publishing API (PAPI)
  • Get Sharepoint and MCMS working together
  • InfoPath, RSS and hot topics covered

Description

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

Who is this book for?

This book is written for developers who want to the skills to fully exploit the power of MCMS and SPS. The book presumes a working knowledge of MCMS, the .NET Framework and familiarity with the C# language. All the code examples are in C#.

What you will learn

  • Extensive coverage of the Publishing API (PAPI)
  • Managing Channels and Postings with the PAPI
  • Managing Templates, Template Galleries, Resources, and Users with the PAPI
  • Getting Sharepoint and MCMS to work together
  • Publishing content between MCMS and SharePoint
  • Preparing postings for search indexing
  • Creating Sharepoint Web Parts to display MCMS data
  • Creating powerful custom Placeholder Controls
  • Adding validation to Placeholder Controls
  • Combining InfoPath, Web Services and MCMS s robust content repository
  • Using RSS to syndicate content from your site, and display content from other sites
  • Staging static versions of your pages
  • A further 60 pages of invaluable MCMS tips and tricks

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 16, 2005
Length: 544 pages
Edition : 1st
Language : English
ISBN-13 : 9781847190406
Vendor :
Microsoft
Concepts :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 16, 2005
Length: 544 pages
Edition : 1st
Language : English
ISBN-13 : 9781847190406
Vendor :
Microsoft
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 10,104.97
Expert Delphi
₱2806.99
Advanced Microsoft Content Management Server Development
₱3367.99
Business Process Execution Language for Web Services 2nd Edition
₱3929.99
Total 10,104.97 Stars icon

Table of Contents

13 Chapters
Building CMS Explorer Chevron down icon Chevron up icon
Managing Channels and Postings with the PAPI Chevron down icon Chevron up icon
Managing Templates, Template Galleries, and Resources Chevron down icon Chevron up icon
Preparing Postings for Search Indexing Chevron down icon Chevron up icon
Searching MCMS with SharePoint Chevron down icon Chevron up icon
Publishing Content Between MCMS and SharePoint Chevron down icon Chevron up icon
Building SharePoint Web Parts Chevron down icon Chevron up icon
Useful Placeholder Controls Chevron down icon Chevron up icon
Validating Placeholder Controls Chevron down icon Chevron up icon
Staging Static Pages Chevron down icon Chevron up icon
InfoPath with MCMS Web Services Chevron down icon Chevron up icon
MCMS and RSS Chevron down icon Chevron up icon
Essential How-Tos, Tips, and Tricks Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(3 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
David Adamson Jun 18, 2006
Full star icon Full star icon Full star icon Full star icon Full star icon 5
If you've ever been involved with MCMS 2002, you will know the authors of this title, and the great work they do for the Content Management Server community. They are either Microsoft employees or MVPs and are recognised experts in CMS development.This book is next in line after the title, "Building Websites with Microsoft Content Management Server". It delves deep into the more advanced development topics on the MCMS platform. To help you understand the topics and areas presented, there is an abundance of code which is essential. The best thing about the code examples is that they are not throw away HelloWorld demonstrations, but real life applications and uses of functionality that you will more than likely adapt to use in your own implementation. That's where the experience of the authors shines through.As well as pure MCMS content, there are also a number of chapters dedicated to explaining and demonstrating Sharepoint integration points and searching (a major feature lacking from MCMS). For many company intranets, MCMS or Sharepoint are not enough on their own and must be combined to provide a complete solution. This book goes some way towards making the combination less painful.My only (selfish) criticism of this book is the timing of its release. It would have been an awesome training tool when I was getting into MCMS development!! That aside, the examples given are still very relevant for development today and will offer even the seasoned developer new tricks, give them a deeper understanding of the APIs, and provoke new ideas and thoughts on what can be achieved. Chapters on RSS enabling your sites and integrating Infopath forms to web services in MCMS are two areas that probably wouldn't have been covered a few years ago, but are now hot topics.The book also includes a number of "essential how-tos, tips and tricks" that are obviously taken from the authors' own experiences with MCMS customers. You too will have wondered how to do these things, and if you worked it out alone, would be cursing not having had this book in your collection at the time.I consider this book, along with its predecessor, `must have' guides with material for anybody involved in MCMS development. You will definitely get a lot out of them.
Amazon Verified review Amazon
Joe Capka Jun 06, 2006
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book offers a hands-on approach to learning MCMS topics that mimic real world problems. While most books and manuals focus on the ideal or typical scenario, this book explores how to deal with the tough scenarios where the product shortcomings need to be overcome by creative and innovative solutions. Definitive answers are provided to many of the tough questions that every developer asks when delving deep into MCMS. Working code samples make up a significant portion of the book and are extremely valuable in understanding the topics being explained.A few chapters of the book focus on the integration of MCMS and SharePoint technologies which while being a failry popular topic in industry is not something that has been well documented until now. Integration of MCMS with SharePoint or RSS is viewed as a difficult task but has now been made significantly easier.This book is meant for developers that want to push MCMS past the typical scenario and get the most out of the product. It is not meant to teach MCMS but to help developers familiar with the product to get to the next level of expertise.
Amazon Verified review Amazon
Derek Strickland Jun 05, 2006
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book starts out strong with 3 chapters fully devoted to creating a sample application using the Publishing API. While the code examples are copious they are (necessarily) somewhat redundant. The authors chose to create an administration tool as the most effective means of illustrating the Publishing API's capability. This was an effective technique in that it exposed the core of the API very quickly to the reader, as well as having the added benefit of communicating the purpose of the MCMS Server. If you are uncertain, as I was, on what problems Microsoft Content Management Server may or may not be the right solution for, this book will take you a long way towards understanding the product and its role in the platform.After finishing the baseline administration tool, the book takes a refreshing detour on the topic of search engines. Rather than going into detail I will summarize this chapter by saying this, if you need a primer on the basics of Search Engine Optimization, give this chapter a shot. I think you will like it.Next, the authors spend three chapters on SharePoint integration and configuration. If you are using SharePoint as a foundation for your product or the enabling technology for your internal portal, you should consider the benefits of integrating with MCMS or possibly using MCMS in lieu of SharePoint. My experiences with SharePoint have always reminded me of the end of a brewery tour; fraught with bloat. While SharePoint is remarkably feature-rich, it always seems that the average user either isn't interested in the features or is intimidated by them. The appealing aspect of MCMS, from my perspective, is that the Publishing API is designed to allow you to write your applications/sites your way (with some caveats), and still have the added benefit of a tool that handles the administrative duties (transactional document management). I quickly got the feeling that if my singular goal was to manage web content across any number of channels then MCMS was a nice lightweight alternative to SharePoint. In fact, I kept thinking about website design firms and wondering how a product like this could impact the efficiency of their business.The refreshing thing to learn, for me at least, was that while MCMS can and does integrate with SharePoint, SharePoint is not required. In fact the book does a fine job of illustrating how to avoid using SharePoint altogether.With SharePoint fully dealt with, the book moves on from that point to discuss the intricacies of the aforementioned caveats of implementing dynamic content, validating dynamic content, and staging static content as well. Also of note are chapters devoted to integrating InfoPath as an editing tool and integrating RSS feeds into yours site, all with full code samples.All in all, this book was enjoyable. With the exception of the unavoidable SharePoint section, the book was devoted to MCMS development and as such had a lot of example code to sift through. As a testament to this book, I think you could read the code examples alone and get an introduction to the Publishing API. One disclaimer, the example applications in this book are intentionally straight forward. All the sample code is procedural in nature. Take it for what it is, a readable set of examples. This book is not intended to address issues of application design, and if you expect that you will be sorely disappointed.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.