Book Image

Advanced Microsoft Content Management Server Development

Book Image

Advanced Microsoft Content Management Server Development

Overview of this book

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
Table of Contents (21 chapters)
Advanced Microsoft Content Management Server Development
Credits
About the Authors
About the Reviewers
Index

Creating the TropicalGreen Web Application


Next, let’s create and configure a web application for the Tropical Green website.

  1. 1. Open Internet Services Manager (point to Start | Administrative Tools | Internet Information Services).

  2. 2. Expand the nodes COMPUTERNAME (local computer) | Web Sites.

  3. 3. Right-click on Default Web Site and select New Virtual Directory....

  4. 4. When the Virtual Directory Creation Wizard opens, click Next.

  5. 5. For the Virtual Directory alias, enter TropicalGreen and click Next.

  6. 6. On the next page, click Browse and navigate to the location of the TropicalGreen directory extracted earlier, something like C:\1167_FinalCode\TropicalGreen\. Click Next.

  7. 7. Next, choose to allow the following permissions:

    • Read

    • Run scripts (such as ASP)

  8. 8. Click Next.

  9. 9. Click Finish.

  10. 10. Right-click on the newly created TropicalGreen virtual directory and click Properties.

  11. 11. Select the Directory Security tab, and in the Anonymous access and authentication control section, click Edit....

  12. 12. Ensure that the Anonymous access option is checked.

  13. 13. Close all open dialogs.

The TropicalGreen virtual directory has been successfully created. However, in order for the site to work correctly, we need to add the CMS virtual directory.

Adding the CMS Virtual Directory

The CMS virtual directory contains the MCMS files that are required by Web Author. It is normally added by the MCMS web project creation wizard when creating a project with Visual Studio. However, since we have downloaded the project and created the virtual directory manually, we need to add the CMS virtual directory ourselves.

  1. 1. With Internet Services Manager open, right-click on the newly created TropicalGreen virtual directory and select New | Virtual Directory....

  2. 2. This time, enter an alias of CMS, and for the website content directory, choose Microsoft Content Management Server\Server\IIS_CMS\.

  3. 3. In the Access Permissions dialog, check Read and Run scripts (such as ASP). Click Next, and then Finish.

  4. 4. Now we need to configure the CMS virtual directory to use Tropical Green’s application domain. Right-click on the new CMS virtual directory, and select Properties.

  5. In the Virtual Directory tab, look for the Application Settings section, and click Remove.

  6. 5. Click OK to close the Properties dialog.