[pmwiki-users] How to set RSS feed channel link properly?

Patrick R. Michaud pmichaud at pobox.com
Fri Oct 13 08:34:09 CDT 2006


On Fri, Oct 13, 2006 at 11:14:30AM +0200, Roman wrote:
> By default, PmWiki sets channel link inside of RSS feed to
> {$PageUrl}?action=rss. I think this is not good for two reasons:
> 
> 1. According to RSS specification it should be URL of the website
> corresponding to the feed, not URL of the feed itself.

You're correct.  Thanks for pointing this out.

> I wanted to change this and set $FeedFmt['rss']['feed']['link'] to
> $ScriptUrl. 

You should be able to use either of the following:

   $FeedFmt['rss']['feed']['link'] = $ScriptUrl;
   $FeedFmt['rss']['feed']['link'] = '{$ScriptUrl}';

> I'm using CleanURLs, so $ScriptUrl is set in my config.php
> to something like 'http://www.domain.com'. But when I look to
> generated feed I see feed link like
> 'http://www.domain.com/pmwiki/pmwiki.php'. How could it happen? 

Is your config.php loading the feeds.php script before
it sets the value of $ScriptUrl?

Pm





More information about the pmwiki-users mailing list