Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-13 17:06:56
- Andrew
- Plugin Author

- Registered: 2004-02-23
- Posts: 730
[plugin] [ORPHAN] ajw_nofeed
ajw_nofeed
This plugin will allow you to hide certain problematic/invalid body or excerpt content from being output in your RSS and Atom feeds.
- Read the documentation
- Download (current version v0.1)
Last edited by Andrew (2007-01-03 03:59:10)
Offline
Offline
Re: [plugin] [ORPHAN] ajw_nofeed
Andrew wrote:
ajw_nofeed This plugin will allow you to hide certain problematic/invalid body or excerpt content from being output in your RSS and Atom feeds.
It doesn’t seems to work in TextPattern 4.0.5. Changing the source to this seems to work:
function ajw_nofeed($atts, $thing)
{
global $permlink_mode;
$feed = false;
if ($permlink_mode == "messy") {
if (gps('rss') || gps('atom'))
$feed = true;
} else {
$req = serverSet('REQUEST_URI');
extract(chopUrl($req));
if ($u1 == 'rss' || $u1 == 'atom')
$feed = true;
}
return ($feed ? '' : parse($thing));
}
Offline
Pages: 1