OpenText & RSS

22 views
Skip to first unread message

Kristaps Karlsons

unread,
Oct 14, 2010, 5:26:19 AM10/14/10
to reddot-c...@googlegroups.com
Hi, list.

What's the best and most efficient way to generate RSS feed for list_nextlevel pages?

Thank you,
Kristaps

Jian Huang

unread,
Oct 14, 2010, 9:42:47 AM10/14/10
to RedDot CMS Users
Hi Kristaps,

Can you tell us what fields, some are optional will be used in your
RSS feed? For example, if you are planning on using a
inf_last_modified from the page as <pubDate>, then you might not want
to use rendertag or navigation manager to return value of
inf_last_modified.

Personally, I would avoid creating a RSS project variant, just create
a content class that outputs xml, with lst_pages referenced to
list_nextlevel.

Best,

-Jian

Kristaps Karlsons

unread,
Oct 14, 2010, 10:10:54 AM10/14/10
to reddot-c...@googlegroups.com
Hi, Jian,

Can you tell us what fields, some are optional will be used in your
RSS feed?  For example, if you are planning on using a
inf_last_modified from the page as <pubDate>, then you might not want
to use rendertag or navigation manager to return value of
inf_last_modified.

Title, description, link and publication date would be everything I'd need.

For publication date I guess I'll be using info element - Page: Release Date.

Personally, I would avoid creating a RSS project variant, just create
a content class that outputs xml, with lst_pages referenced to
list_nextlevel.

So - just iterate trought a referenced list and add XML markup manually. Ok.

Last thing - is it possible to automatically publish this (rss) page when new page is added and published? If yes - can the rss page be in other branch of site?

Thank you

Jian Huang

unread,
Oct 14, 2010, 7:38:24 PM10/14/10
to RedDot CMS Users
Yes, you can use the workflow publish reaction to publish the article
page and related page, which mean any other page that the article page
is connected to. However, in that case, I would not be using
lst_pages to reference list_nextlevel because a reference is not a
page connection.

How do you achieve an automatic push to lst_pages in the RSS feed
page, you ask? Use category and keywords.

However, watch out in the scenario that a page is connected in
multiple locations because if each location has a different pub
package, then the page will get published multiple times to multiple
locations according to pub package.

How to avoid this you ask?

We use a technique call "shadow list". Have lst_pages and
lst_pages_ref in you RSS feed content class. Reference lst_pages_ref
to lst_pages. In the content class code, wrap lst_pages in XML
comments and SmartEditModeOnly blockmark, and use list_pages_ref to
illiterate through your articles instead.

What does this technique accomplish?
A page is connected to multiple places, a publish related page command
will be triggered if needed, but the publish will follow
lst_pages_ref, which is used in the template, and lst_pages_ref is a
reference, so the pub package used for those pages defaults to pub
package on mainlink, where you really want your pages to go to.

kimdezen

unread,
Oct 14, 2010, 10:06:35 PM10/14/10
to RedDot CMS Users
..and if you are unable to reference lists, ive always found this
technique does the same sort of thing (outputs the location of the
'main link' for the page - effectively the same publication package
where the page resides in the project)


<!IoRangeList>

<!IoRangeNoRedDotMode><!IoRangeRedDotMode><!-- <%lst_pages%> --
><!/IoRangeRedDotMode><!/IoRangeNoRedDotMode>
....

<link><%!! Context:Indexes.GetIndexByPageId(Guid:<%inf_pageguid
%>).Page.GetUrl() !!%></link>

.....

<!/IoRangeList>

although it wont stop the CMS from publishing multiple files (unless
everything is published to the root directory) - all links across the
site will point back to the same page.

Kim

markus giesen

unread,
Oct 14, 2010, 11:52:31 PM10/14/10
to RedDot CMS Users
Reply all
Reply to author
Forward
0 new messages