Ektron CMS400.Net Reference

>>Using Other Development Frameworks > CustomJSPFunctions > Add Content

Add Content

The add content function allows you to programmatically add a new content block to Ektron CMS400.NET without the need of logging in.

Here is the format for the add content function:

<%= ecmAddContent (String UserName, String Password, String Domain, String content_title, String content_comment, String ContentHtml, String SummaryHTML, String ContentLanguage, String FolderID, String GoLive, String EndDate, String MetaInfo) %>

This function is basically the same as the Add Content function in ASP. See Add Content for details.

The only difference between the JSP function and the ASP one is the syntax for implementing it. The JSP example is below.

Add Content Example

The following is an example of the add content function in a template:

<tr>

<td>

<%= ecmAddContent ("admin", "admin", "", "Content Title", "Comment", "This is the <b>body</b> of the content.", "This is the <i>summary</i> for the content.", "1033", "0", "", "", "") %>

</td>

</tr>


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.