Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Core development
  3. » Bug: RSS/Atom - broken feed

#1 2009-02-16 13:56:52

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

Bug: RSS/Atom - broken feed

RSS/Atom – broken feed. (wrong code in rss.php and atom.php)

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 to:
$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 to:
$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-16 14:09:22

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

Re: Bug: RSS/Atom - broken feed

Thanks for the report. We are aware of your previous post.

Offline

  1. Index
  2. » Core development
  3. » Bug: RSS/Atom - broken feed

Board footer

Powered by FluxBB