[dokuwiki] Re: quick - syndication question - is specific $ID possible/practical?

  • From: Michael Hamann <michael@xxxxxxxxxxxxxxxx>
  • To: dokuwiki <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 06 Jan 2011 23:18:09 +0100

Hi,

Excerpts from Robin Getz's message of 2011-01-06 22:33:43 +0100:
> I can see from http://www.dokuwiki.org/syndication, that I can look at the 
> entire site, or specific namespace, but I couldn't figure out how to set it 
> up for a specific page...
> 
> From looking at feed.php - it doesn't seem to be possible today.

See http://bugs.dokuwiki.org/index.php?do=details&task_id=1607, the
event(s) exist since 2009-11-10 ('FEED_MODE_UNKNOWN' and
'FEED_DATA_PROCESS'), but the documentation on dokuwiki.org seems to be
missing. If nobody else is faster I'll add that documentation during the
next days.

> I looked, and determined that it is since:
> 
> inc/changelog.php:_handleRecent() includes:
> 
>     // filter namespace
>     if (($ns) && (strpos($recent['id'],$ns.':') !== 0)) return false;
> 
> if I'm looking for a specific page "foo:bar", nothing will match "foo:bar:"
> 
> If I change it to:
> 
> diff --git a/inc/changelog.php b/inc/changelog.php
> index bb00df7..38bdefa 100644
> --- a/inc/changelog.php
> +++ b/inc/changelog.php
> @@ -263,7 +263,7 @@ function _handleRecent($line,$ns,$flags,&$seen){
>      if(isHiddenPage($recent['id'])) return false;
> 
>      // filter namespace
> -    if (($ns) && (strpos($recent['id'],$ns.':') !== 0)) return false;
> +    if (($ns) && (strpos($recent['id'],$ns) !== 0)) return false;
> 
> It does work - (I can subscribe to specific pages) - but I know that is 
> wrong, 
> since it will also match "foo:bar*" --  I also wasn't sure what the expected 
> results were for foo/bar.txt (the "bar" page), and /foo/bar/baz.txt 
> (the "bar" namespace).

I think we need a special mode for individual pages and although this is
possible as action plugin I think it makes sense to include it in
DokuWiki as it is the equivalent to "Old revisions". I think a different
mode makes sense because there are also changelog files for individual
pages that should be used.

Regards,
Michael
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: