Show
Ignore:
Timestamp:
07/29/08 02:18:36 (4 months ago)
Author:
bsmith
Message:

adding pod docs for UserSessionState

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-41/lib/MT/Template/ContextHandlers.pm

    r2833 r2851  
    1142911429currently logged in. 
    1143011430 
     11431=for html <p>This tag is usually only used in the context of system 
     11432templates. The blog accesses this data once per user session via javascript. 
     11433See the <a href="/default_templates/4.2/javascript.mtml">JavaScript index 
     11434template from the default template set</a> for an example of this.</p> 
     11435 
     11436B<Example:> 
     11437 
     11438The tag L<UserSessionState> will output the following JSON data structure 
     11439(formatted with whitespace for readability): 
     11440 
     11441    { 
     11442        "sid":"Hk8lPRoJ1FBuxnQrdZUUvC8qHo9ngmgyNDEKLIkW", 
     11443        "userpic":"/mt-static/support/assets_c/userpics/userpic-1-100x100.png", 
     11444        "profile":"", 
     11445        "auth_type":1, 
     11446        "is_trusted":1, 
     11447        "is_anonymous":0, 
     11448        "name":"Melody P Nelson", 
     11449        "email":"melody@sixapart.com", 
     11450        "is_author":1, 
     11451        "is_banned":0, 
     11452        "is_authenticated":1, 
     11453        "can_comment":1, 
     11454        "can_post":1, 
     11455        "url":"http://sixapart.com" 
     11456    } 
     11457 
    1143111458=for tags comments, authentication 
    1143211459