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. Add a new web form to the CMSExplorer solution, and name it
CreatePosting.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 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...