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
€35.98 €39.99
Paperback
€48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781904811534
Vendor :
Microsoft
Concepts :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 16, 2005
Length: 544 pages
Edition : 1st
Language : English
ISBN-13 : 9781904811534
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 €5 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 €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 149.97
Expert Delphi
€41.99
Advanced Microsoft Content Management Server Development
€48.99
Business Process Execution Language for Web Services 2nd Edition
€58.99
Total 149.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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.