Syndicating content with RSS

Follow

Agility can syndicate any content by using a URL based RSS API. Below is the path with a list of the fields.

Path

ecmsrss.aspx/<ContentReferenceName>.xml

Query String Properties

Property

Value

Example

Lang

Language Code

En-us

Sort

Expression

title

Count

Integer

5

Filter

Expression

Title ="New"

Link

The path to a link resolver

https://{site}/blog/blog-dynamic-page

Query

Querystring to use with link resolver

contentid

TitleField

Field to use for the RSS Title

Title

DescriptionField

Field to use for the RSS Description 

RichTextArea

Example:

Generate an RSS feed using fields from the content definition

/ecmsrss.aspx/BlogPosts.xml?Lang=en-us&descriptionfield=BlogContent&
Link=https://{site}/blog/blog-details&Query=contentid&TitleField=Title

Which results in an output such as:

<rss version="2.0">
    <channel>
        <title>Blog Posts</title>
        <description>Blog Posts</description>
        <link>https://{site}/blog/blog-details</link>
        <language>en-us</language>
        <generator>Agility CMS</generator>
        <lastBuildDate>Tue, 18 Dec 2018 17:33:52 +0000</lastBuildDate>
        <item>
            <title>
                <![CDATA[ My Blog Post Title ]]>
            </title>
            <link>https://{site}/blog/blog-details?contentid=3087</link>
            <description>
                <![CDATA[
                    <p>This is a description for a blog post</p> 
                ]]>
            </description>
            <pubDate>Mon, 17 Dec 2018 01:27:39 +0000</pubDate>
        </item>
    </channel>
</rss>

 

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.