Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
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
Re: Bug: RSS/Atom - broken feed
Thanks for the report. We are aware of your previous post.
Offline
Pages: 1
Topic closed