I apologize for not re-reading the thread, but why would you want to use search to pull in the most recent changes instead of using the various RSS feeds that are available?
I apologize for not re-reading the thread, but why would you want to use search to pull in the most recent changes instead of using the various RSS feeds that are available?
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
For me, my answer is that unless there has been an enhancement in the RSS feed, that solution does not work for private wikis with security restrictions on different parts of the wiki.
Plus I like the presentation style that I've come up with.
I've found this recent changes table really useful for use as an item on each 'Section' of a wiki.
But I found that some pages refuse to show up the changes within that section. The table comes up ok, but no data on recent changes. I think its to do with paths that have '_' or '/' in them. But some pages with these chars DO work.
What I found fixed it (up to a point is to remove the '/*' at the end of the path ie
{{template("Template:recentchanges",{path:"D1649_X XXX_X_YYYY_Item/*",number:"15"}) }}
works when you change it to
{{template("Template:recentchanges",{path:"D1649_X XXX_X_YYYY_Item",number:"15"}) }}
but annoying, any changes to that page itself are now not shown, only changes to child pages .
Any idea what the problem is ?
Oddly to confuse the issue further I found that some pages that should appear in the recent changes list only appear when you do indeed miss off the '/*'.
The extra page change that appeared when I removed the '/*' was just a page I changed a month ago, just sited directly under the page that has the 'recent changes' table on it.
Yes, removing the '/*' from the path definition on another page, now reports an extra two items that were changed compared to path having '/*' appended to the end.
Again, its two pages that are directly below the path with the Recent Changes table on it, ie /Images now has two extra pages reported including :-
Images/White_Lion_8-06-05 07/10/08 - 18:44 julianr page created, 10 words added
Images/ProfessionalPhotos06
ie it seems that using '/*' on the path is missing either all or some of the pages changed that are directly under it.
There are two recentchanges templates out there. Can you clarify where you got it from and if this is a wiki issue, or a coding issue in the recentchanges template? (I wrote one of them, and would like to correct the code if needed).
Lyons has some good improvements for using feeds. First, you can now go the page's feed (GET:/pages/{pageid}/feed) and specify that you want the changes of this pages and all its subpages (?depth=infinity). Second, you can append the user's authtoken to enable access to the feed even when your site is private.
The following code will build the correct URI for this (req. Lyons):
The XML feed can be generated in 3 formats (?format=xyz): daily (default), all, raw, and rawdaily. The first two are Atom formats which can be used by RSS readers. The last two are plain XML and only contain the raw information to compute the full RSS feed. The daily formats combine edit changes of a given page over a 24 hour period (e.g. edited 4 times by X, Y, Z).Code:var feed = web.xml(page.feed & { depth: 'infinity', authtoken: user.authtoken });
Here are the site feeds from trunk.mindtouch.com:
- Atom feed of daily changes: http://trunk.mindtouch.com/@api/deki/site/feed
- Atom feed of all changes: http://trunk.mindtouch.com/@api/deki...eed?format=all
- XML of daily changes: http://trunk.mindtouch.com/@api/deki...ormat=rawdaily
- XML of all changes: http://trunk.mindtouch.com/@api/deki...eed?format=raw
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
Hi Craig
It was the recent changes from this particular thread in the forums.
Thanks
This will be very useful to us for Project based areas of our wiki
Julian
This is the second lyons change that will be a huge help for me! You guys are great!