Forum Discussion

teknetik's avatar
12 years ago

Find the userid of an author

I am writing a small "badges" addin for Lithium. I have found the place where I can add a custom component to an authored post.   What I am looking for is freemarker or a rest call that will return...
  • teknetik's avatar
    teknetik
    12 years ago

    So I thought I had the full answer but it seems not. Here is my updated code for other newbies:

     

    <#assign author= env.context.message.author />
    
    <h1>${author.login}</h1>

     

    That will print out JUST the author.

     

    <#assign author= env.context.message.author />
    
    <h1>${author.id}</h1>

      Just the ID

     

    Hope this post helps someone else out oneday....