I am trying to create an RSS feed with the DocumentDataSource and the RSS Repeater. I created a DataSource that has Articles and my own custom data type Case Study which is similar to an Article. The problem is I need to make them look the same in an RSS field...so tried the following but I cannot get it to work right. Case Study has fields "CaseStudyName" which is the same as "ArticleName" in Article. I also have "TeaserText" which is the same as ArticleTeaserText. Short of naming the fields the same which i would like to avoid...how can I get this code to work?
<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMS.Controls.CMSAbstractTransformation" %>
<%@ Register TagPrefix="cc1" Namespace="CMS.Controls" Assembly="CMS.Controls" %>
<item>
<guid isPermaLink="false"><%# Eval("NodeGUID") %></guid>
<title><%#IfEmpty(Eval("ArticleName"), <![CDATA[ Eval("CaseStudyName",false)]]>, <![CDATA[ Eval("ArticleName",false)]]>) %></title>
<description><%#IfEmpty(Eval("ArticleTeaserText"),<![CDATA[ Eval("TeaserText",false)]]>, <![CDATA[ Eval("ArticleTeaserText",false)]]>) %></description>
<pubDate><%# GetRSSDateTime(Eval("DocumentCreatedWhen")) %></pubDate>
<link><![CDATA[<%# GetAbsoluteUrl(GetDocumentUrlForFeed(), Eval("SiteName")) %>]]></link>
</item>