Welcome close

We've made some changes!

As you may have noticed, we've made some changes to the DevCenter to include the new Exchange site, a code community for Ektron developers. You may use the same username and password to login for both the Exchange and DevCenter. Your DevCenter profile has moved over to the Exchange site. You also may notice we have removed some profile functionality in favor of new functionality, including Activity Streams. We welcome your feedback about the site on the Exchange forum.

SEARCH : searchSite
This SectionSite Wide
API

RSS Feed Print Category View
rss feeds 7.5.3 sp2
TE
Posted: Wednesday, January 13, 2010 11:33 AM
Joined: 12/21/2006
Posts: 81


We are encountering an issue when displaying a rss feed.  We are seeing the title "Founders&amp#39; ( Day Brunch" rather than the title "Founders' Day Brunch" in an rss feed.  See http://www.elgin.edu/rssfeeds.aspx. 

 

here is code for rssfeeds.aspx

<%@ Page Language="C#" AutoEventWireup="false" CodeFile="rssfeeds.aspx.cs" Inherits="rssfeeds" %>
<%@ Import Namespace="Ektron.Cms.UI.CommonUI" %>

<%
    Object rssData;
    ApplicationAPI AppUI = new ApplicationAPI();
    rssData = AppUI.ecmRssSummary(452, true,"title", 0,"");
    Response.ContentType = "text/xml";
    Response.Write(rssData);


 %>

 

 

 

We are using cms400 7.5.3. sp2.

 

I looked into the content table and viewed the title and it contains "Founders&amp#39 Day Brunch".  We have other content blocks that have a title with an apostrophe in them and they are saved into the content table without the &amp#39.

 

We have attempted the following and nothing changes:

1) edit the content block title.  Stills saved as "Founders&amp# 39; Day Brunch" within the content table

2) modify code that displays rss to include Server.HtmlDecode("title" as String)

 

 

How to resolve?


dyanarose
Posted: Thursday, January 14, 2010 3:27 AM
Joined: 8/11/2009
Posts: 153


I had to write a user control in order to get a 'better' (more customisable) rss feed out of the CMS using the ContentWS.asmx method ecmListSummaryXML.  I took the feed that that gave me, did some string manipulation to make it html and RSS friendly, and then ran it through an xslt that returned a properly formatted RSS feed.

 

I don't know if your situation calls for this, it was a bit more complicated to write than I hoped due to encoding issues (though the actual code is maybe 20 lines, outside of properties), but going custom could be an option if you can return the results you need to produce in another way and create the RSS feed yourself.

 


TE
Posted: Thursday, January 14, 2010 12:39 PM
Joined: 12/21/2006
Posts: 81


I guess part of my question is whether or not this is expected behavior of ektron's editor?  In one case a person types in "Kids' Scope"  as a content block title and the data gets stored in the database as "Kids' Scope".  Yet, another person types in "Founders' Day Brunch"  as a content block title of a different content block and it gets stored in the database as "Founders&amp#39: Day Brunch"?

 



 

Jump to different Forum... 






Register for Synergy 2010

Articles
Design without Borders, yet with Structure
CMS400.NET and Adobe Flex
GeoMapping
EkML Ektron Markup Language
Taxonomy

[First] [Previous] [Next] [Last]


See All Articles