Was this page helpful?

Wiki.Contributors

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    wiki.Contributors(path : str? , max : num?, recent : bool? ) : xml 
    

    Insert a list of top or most recent contributors on the site.

    Usage Restrictions

     1.8.2 or later

     9.2 or later for recent argument

    Parameters

    Name Type Description
    path str (optional, default: nil) Specified wiki page path.
    max num (optional, default: none) The maximum number of contributors displayed.
    recent bool (optional, default: false) Order the result set by most recent rather than top contributor

    Result

    The top contributors of a page in xml format.

    Samples

           Output

    To find the site's top contributors:

    {{wiki.contributors() }} 

          

    To find the site's top 3 contributors:

    {{wiki.contributors(nil, 3) }} 

          

    To find the site's top 3 most recent contributors:

    {{wiki.contributors(nil, 3, true) }} 

    Was this page helpful?
    Tag page
    Viewing 7 of 7 comments: view all
    I am looking to get the contributors for a page and all its sub pages. What is the best approach to doing that?
    Posted 10:48, 7 Oct 2008
    How can I filter this function for deactived users?
    Posted 14:25, 16 Feb 2009
    @gabriel84 you can't yet. Please file a bug on it. Thanks.
    Posted 18:18, 16 Feb 2009
    What about specifying a date range? I'd like to do a contribution report each month. One group has a quota. Each Engineer has to add 3 articles per month. This function makes edits synonymous with contributions. How would I find unique pages created by a user in a given time period?
    Posted 16:14, 13 May 2009
    @bohappa That's a great suggestion! Please file a bug on it so we can follow-up on it. Thanks!
    Posted 01:05, 14 May 2009
    I hate to necropost, but has a way been found to implement a report as bohappa was requesting? I find myself in need of a similar report.
    Posted 08:30, 8 Feb 2011
    Is there anyone still watching this thread? I've noticed that the date stamps displayed when using {{wiki.contributors(nil, 3, true) }} often display tomorrow's date, depending on the time of the edit. I believe this is because the DB stores the datetime in GMT and the wiki.contributors script doesn't seem to respect the timezone that is configured for Mindtouch. Is this something that I can work around somehow, or are there future plans to make the script obey the timezone setting? I'm using Mindtouch Core. Thanks!
    Posted 07:24, 3 Dec 2012
    Viewing 7 of 7 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by