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. Add a new web form to the CMSExplorer project. Name the new web form
CopyPosting.aspx
.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. 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...