Was this page helpful?

Page.Revisions

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Result
    3. 3. Samples
    page.Revisions : list 
    

    The revisions of the page

    Usage Restrictions

    9.02 or later

    Result

    A list of page objects in cronological order, each representing a revision of the page

    Samples

      Output

    Build a list of all revision dates:

    var r = [];
    foreach (var p in page.revisions) {
      let r = r .. [p.date];
    }
    r;
    [ "Fri, 10 Apr 2009 20:48:58 GMT", "Fri, 10 Apr 2009 20:50:21 GMT", "Sun, 05 Jul 2009 00:56:10 GMT" ]

    Get the date of page creation

    {{page.revisions[0].date}}

    Fri, 10 Apr 2009 20:48:58 GMT

    Get the first revision map

     {{page.revisions[0]}}
     { api : "http://developer.mindtouch.com/@api/deki/pages/28436", author : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$user", comments : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$pagecomments", contents : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$pagecontents", date : "Fri, 10 Apr 2009 20:48:58 GMT", editsummary : "page created, 80 words added", feed : "http://developer.mindtouch.com/@api/deki/pages/28436/feed", files : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$files", fronturi : "http://developer.mindtouch.com/en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Page.Revisions", id : 28436, ishidden : False, language : nil, mime : "application/x.deki0805+xml", name : "Page.Revisions", namespace : "", parent : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$page", parents : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$parents", path : "en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Page.Revisions", properties : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$pageprops", rating : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$rating", redirect : nil, revision : 1, revisions : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$revisions", subpages : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$subpages", tags : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$pagetags", talkuri : "http://developer.mindtouch.com/Talk:en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Page.Revisions", text : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$pagetext", title : "Page.Revisions", toc : <html><body><span id="page.toc">nil</span></body></html>, unprefixedpath : "en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Page.Revisions", uri : "http://developer.mindtouch.com/en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Page.Revisions", viewcount : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$pageviewcount", xml : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$pagexml" }

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by