Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-09 13:31:24

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

RSS-Atom bug in all version textpattern

RSS-Atom bug in all version textpattern

Show bug:
1. Create new article.
In Body place: <txp:article_custom form=“tf_your_form” category=“your_category” /> (with some output)
In Excerpt place: <txp:article_custom form=“tf_your_form” category=“your_category” /> (with some output)

2. Save article and see your RSS-Atom feed. Check all items with fields description or content:encoded – some items was broken.

Fixup:
/textpattern/publish/rss.php line 72
$summary = trim(replace_relative_urls(parse($thisarticle[‘excerpt’]), $permlink));
$content = trim(replace_relative_urls(parse($thisarticle[‘body’]), $permlink));
replace:
$summary = trim(replace_relative_urls(parse($a[‘Excerpt_html’]), $permlink));
$content = trim(replace_relative_urls(parse($a[‘Body_html’]), $permlink));

/textpattern/publish/atom.php line 120
$summary = trim(replace_relative_urls(parse($thisarticle[‘excerpt’]), $permlink));
$content = trim(replace_relative_urls(parse($thisarticle[‘body’]), $permlink));
replace:
$summary = trim(replace_relative_urls(parse($a[‘Excerpt_html’]), $permlink));
$content = trim(replace_relative_urls(parse($a[‘Body_html’]), $permlink));


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#2 2009-02-17 06:48:56

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: RSS-Atom bug in all version textpattern

makss wrote:

Check all items with fields description or content:encoded – some items was broken.

Please provide more details on what and how these items appear “broken”, preferably by adding a snippet out of the feeds’ source, and the contents of tf_your_form.

Offline

#3 2009-08-07 07:57:40

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: RSS-Atom bug in all version textpattern

wet wrote:

Please provide more details on what and how these items appear “broken”, preferably by adding a snippet out of the feeds’ source, and the contents of tf_your_form.

Step by step for show bug

1. Get last version textpattern-4.2.0-rc1.tar.gz
2. Blank install it on http://shoptur.org.ua/
3. Create 4 articles: (1,2,4 with title/body/excerpt: title_article1 / article1 / excerpt_article1 ; same article2 and article4)

article3: title_article3 / body <txp:article_custom form="article_listing" /> / excerpt <txp:article_custom form="article_listing" />

4. See my RSS/Atom feed http://shoptur.org.ua/rss/ and http://shoptur.org.ua/atom/

In article1 and article2 – description from article4 ?!

Broken items:

[...skip...]
<item><title>title_article2</title>
<description>
<![CDATA[<p>excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 </p>]]>
</description>
<link>http://shoptur.org.ua/articles/title_article2</link>
<pubDate>Fri, 07 Aug 2009 07:35:03 GMT</pubDate>
<dc:creator>aa</dc:creator>
<guid isPermaLink="false">tag:shoptur.org.ua,2009-08-07:0a17fb508ea72eabdb8e16c09db60547/9c34ebf1b3a8b8dfdeb90a5bc4d1c8cf</guid>
</item>
<item><title>title_article1</title>
<description>
<![CDATA[<p>excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 excerpt_article4 </p>]]>
</description>
<link>http://shoptur.org.ua/articles/title_article1</link>
<pubDate>Fri, 07 Aug 2009 07:33:09 GMT</pubDate>
<dc:creator>aa</dc:creator>
<guid isPermaLink="false">tag:shoptur.org.ua,2009-08-07:0a17fb508ea72eabdb8e16c09db60547/e48c5e32e5b36b5395c76a982635444f</guid>
</item>

See my first post, for patch rss.php and atom.php

Last edited by makss (2009-08-07 08:14:10)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#4 2009-08-10 11:38:47

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: RSS-Atom bug in all version textpattern

Confirmed and queued.

Offline

Board footer

Powered by FluxBB