Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
Re: RSS-Atom bug in all version textpattern
Confirmed and queued.
Offline