
ColinW-O
User
Oct 14, 2009, 10:04 AM
Post #1 of 6
(1893 views)
Shortcut
|
|
XML feed format question
|
Can't Post
|
|
Hi guys, Ok, as you might or might not know, I have an iPhone app which feeds off my AM2 articles. I created different pub rules in XML output and I have something that I need to fix but can't figure out how because a) either the feed doesn't load or b) stays the same. So, here's what I have. In the Article Row template cell I have:
<item> <title>$article.title:textOnly:htmlEncoded$</title> <link>$published.articleiphonexml.url$</link> <pubDate>$article.date:format(www, dd MMM yyyy HH:mm:ss)$ EST</pubDate> <description>$article.content:textOnly:htmlEncoded:maxWords(20)$...</description> <guid isPermaLink="true">$published.articleiphonexml.url$</guid> </item> That displays the headline and then the first 20 words of the article content as the preview. The way it's set like that, I get the HTML format so if I skip a line before the first 20 words, it's displayed. I don't want that. I need the first 20 words "unformatted" so to speak so it all displays in one nice paragraph. What's the correct tag to use? I'm attaching a screenshot to show you how it's displayed right now. Thanks.
|