+ Reply to Thread
Page 5 of 6 FirstFirst ... 3 4 5 6 LastLast
Results 41 to 50 of 52

Thread: Including recent changes on the home page

  1. #41
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    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

  2. #42
    Join Date
    Feb 2008
    Posts
    286

    Default

    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.

  3. #43
    Join Date
    Sep 2008
    Location
    UK
    Posts
    66

    Default

    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 ?

  4. #44
    Join Date
    Sep 2008
    Location
    UK
    Posts
    66

    Default

    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.

  5. #45
    Join Date
    Sep 2008
    Location
    UK
    Posts
    66

    Default

    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.

  6. #46
    Join Date
    Feb 2008
    Posts
    286

    Default

    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).

  7. #47
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    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):
    Code:
    var feed = web.xml(page.feed & { depth: 'infinity', authtoken: user.authtoken });
    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).

    Here are the site feeds from trunk.mindtouch.com:
    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

  8. #48
    Join Date
    Sep 2008
    Location
    UK
    Posts
    66

    Default

    Hi Craig

    It was the recent changes from this particular thread in the forums.

  9. #49
    Join Date
    Sep 2008
    Location
    UK
    Posts
    66

    Default

    Thanks

    This will be very useful to us for Project based areas of our wiki

    Julian

  10. #50
    Join Date
    Feb 2008
    Posts
    286

    Default

    This is the second lyons change that will be a huge help for me! You guys are great!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts