It's possible get a list of users trought chalk?

Jun 28, 2010 at 1:42 AM

Straightfoward question! ;)

I cannot found the answer anywhere (including a quick source code inspection!)

My goal is display a list of writers and bios in the blog.

Thanks!

Editor
Jun 28, 2010 at 1:47 AM

Yes, something along the lines of:

using Graffiti.Core;  

foreach (IGraffitiUser user in GraffitiUsers.GetUsers("userRole"))
{
    // Do something with - user.Bio
}

 

Jun 28, 2010 at 2:09 AM

Can I assume that i have to create an chalk extension to expose it to views?

Thanks!

Editor
Jun 28, 2010 at 2:19 AM

Indeed, should be fairly trivial.

Jun 28, 2010 at 2:38 AM

I'll implement it and post here for some code review!

 

Thanks!