Was this page helpful?

Page.Author

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Result
    3. 3. Samples
    page.Author : map
    

    The users that created the current page name and information.

    Usage Restrictions

    1.9.1 or later

    Result

    A map of the current page's user's info.

    Samples

       Output

    to get a page's user info:

    {{ page.author }} 

      

    { active : True, admin : False, anonymous : False, api : "http://developer.mindtouch.com/@api/deki/users/1136", authtoken : nil, comments : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$usercomments", emailhash : "9bf4ac9deb898de779b132c8b16d59c1", feed : "http://developer.mindtouch.com/@api/deki/users/1136/feed", fullname : nil, gravatar : "http://www.gravatar.com/avatar/9bf4ac9deb898de779b132c8b16d59c1.png?d=http://developer.mindtouch.com/skins/common/images/default-avatar.png", groups : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$usergroups", homepage : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$page", id : 1136, language : nil, metrics : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$usermetrics", name : "gouwzee", owner : nil, properties : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$userprops", seated : nil, timezone : "+02:00", uri : "http://developer.mindtouch.com/User:gouwzee" }

     

    get page creator name

    {{page.revisions[0].author.name}}
    vivieny

     

    Was this page helpful?
    Tag page
    Viewing 4 of 4 comments: view all
    Is this the user that created the page or last edited the page? I believe it is the person who last edited.
    Posted 06:20, 24 Jul 2008
    I tried to get the page creator using {{page.revisions[0].author}}. It doesn't work quite yet, I guess because the datatype is "map." What do I do with map properies?
    Posted 14:33, 20 Apr 2009
    I got it to work, just by adding the map name "name" to the script!
    Posted 14:39, 20 Apr 2009
    page.author is the last person to edit the page. gouwzee, thanks for adding the sample that shows how to get the author who created the page.
    Posted 19:46, 21 Apr 2009
    Viewing 4 of 4 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by