This project is read-only.

How to Modify, so authenticated User can have their Own Blog?

Topics: Writing modules
Aug 28, 2012 at 11:39 AM

Hi, I want to create a module where authenticated user can create their own blog. Instead creating a new module, i've use by modifying it by adding it's content type to User.Profile.

I'm new at this, so please help. 

how to automatically create a new blog for authenticated user if it doesn't have any. and all user blog  will show on admin blogs tab?

maybe like count the user id if greater than 1 it automatically create blog and automatically titled as the user login? is it possible?


is there any example out there, that can help me? 



Aug 28, 2012 at 11:47 PM

If you create a new class that implements IUserEventHandler (which exists in Orchard.Users), you can handle the LoggedIn event. From there, you could check if that user already has a blog. If not, create it from there.