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. Add a new web form to the CMSExplorer project. Name the new web form
MovePosting.aspx
.2. In Design view, drag and drop the
Styles.css
file from Solution Explorer onto the form.3. Toggle to HTML view. Add the following...