This project has moved and is read-only. For the latest updates, please go here.

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

Jun 28, 2010 at 2: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.


Jun 28, 2010 at 2: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 3:09 AM

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


Jun 28, 2010 at 3:19 AM

Indeed, should be fairly trivial.

Jun 28, 2010 at 3:38 AM

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