15.08.2013 Views

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Syndicating Web Content as RSS<br />

title As String, ByVal description As String) As RSS20.rss<br />

Serialize(Optional ByVal stream As System.IO.Stream = Nothing,<br />

Optional ByVal o As Object = Nothing)<br />

Example<br />

Dim objRSSConverter As New CollectionToRSS20(Request, Response)<br />

objRSSConverter.ConvertToRSS(objResult,<br />

objResult.CollectionTitle, objResult.CollectionDescription)<br />

objRSSConverter.Serialize()<br />

Remarks<br />

The ConvertToRSS method returns the RSS 2.0 object so that you<br />

can fill in or modify additional fields as desired before calling<br />

Serialize. The Serialize method has optional parameters that let<br />

you send the RSS to a stream other than HttpResponse.<br />

You can add code to serialize a different object (such as an RSS<br />

1.0 data class) or to run an XSLT on the serialized XML document<br />

before returning it as the HTTP response.<br />

Example<br />

Dim objRSSConverter As New CollectionToRSS20(Request, Response)<br />

Dim objRSS20 As rss.RSS20.rss =<br />

objRSSConverter.ConvertToRSS(objResult,<br />

objResult.CollectionTitle, objResult.CollectionDescription)<br />

objRSS20.channel.language = "en-us"<br />

objRSSConverter.Serialize()<br />

Creating Your Own aspx List Summary Page<br />

To create your own list summary page, copy a list summary object<br />

to an RSS 2.0 object and serialize it. To accomplish this, use these<br />

methods.<br />

ConvertToRSS(ByVal result As CMS400WS.ListSummaryResult, ByVal<br />

title As String, ByVal description As String) As RSS20.rss<br />

Serialize(Optional ByVal stream As System.IO.Stream = Nothing,<br />

Optional ByVal o As Object = Nothing)<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> <strong>Developer</strong> <strong>Reference</strong> <strong>Manual</strong>, Version 5.1, Revision 5 567

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!