There's a blog package in the package repository (http://our.umbraco.org/projects/blog-4-umbraco) and you could have it dynamically create the blog root when the members account is created.
You would then need to create forms which allow them to create new blog posts via the Umbraco Document API (cms.dll)
Nope, you don't need to modify the source, but you'll have to write some custom code/user controls
As Aaron says, it's dead easy to create a new blog root when a member account is created.
For example, let's assume the content structure looks like this:
-Content
--Blog root
---Blog for member A
----2009
-----7
------8
As soon as a member account gets created, you'll have to create a new 'Blog' page (using event handlers on Member class and the umbraco api)
Blog package comes with a number of templates, and you could easily modify the 'Blog' page template to include an extra macro, that references a user control, which will take care of building a new form that will serve as the input for a new blog post. Upon submit, create a new 'Blog Post' in code (using the umbraco api). If you set parent id correctly, the post will be on the right spot (blog package takes care of setting date folders)
If you don't mind members to become users as well (meaning they would get access to the admin), then the first part could be extended by creating a user for each new member account that gets created and limiting access to only the content section (and even further to only his blog by setting parent node)
Umbraco members doesn't have access to umbraco backend (only users can use backend). If you want to work with members, you must create page which allow mambers to create/edit their posts.
Or you can create users instead of members and they can manage their blog using umbraco backend.
Just take a look at the blog package source, they also use the umbraco eventmodel to do some actions. Just pick the right action and you're good to go!
You might also find that there are some modifications required to the blog package. For example, if you use tags for your blog post all tags will be shared amongst all blogs.
Blog for members
Hi umbraco community,
I have a project and one of the features that they want is that when a new member is created they should have their own blog. Is this possible?
With time and money anything is possible ;)
There's a blog package in the package repository (http://our.umbraco.org/projects/blog-4-umbraco) and you could have it dynamically create the blog root when the members account is created.
You would then need to create forms which allow them to create new blog posts via the Umbraco Document API (cms.dll)
Hi slace
Aw! sounds complex for me. Does this mean that I need to alter the umbraco source code?
Nope, you don't need to modify the source, but you'll have to write some custom code/user controls
As Aaron says, it's dead easy to create a new blog root when a member account is created.
For example, let's assume the content structure looks like this:
-Content
--Blog root
---Blog for member A
----2009
-----7
------8
As soon as a member account gets created, you'll have to create a new 'Blog' page (using event handlers on Member class and the umbraco api)
Blog package comes with a number of templates, and you could easily modify the 'Blog' page template to include an extra macro, that references a user control, which will take care of building a new form that will serve as the input for a new blog post. Upon submit, create a new 'Blog Post' in code (using the umbraco api). If you set parent id correctly, the post will be on the right spot (blog package takes care of setting date folders)
If you don't mind members to become users as well (meaning they would get access to the admin), then the first part could be extended by creating a user for each new member account that gets created and limiting access to only the content section (and even further to only his blog by setting parent node)
Hope this helps.
/Dirk
Umbraco members doesn't have access to umbraco backend (only users can use backend). If you want to work with members, you must create page which allow mambers to create/edit their posts.
Or you can create users instead of members and they can manage their blog using umbraco backend.
Petr
but you'll have to write some custom code/user controls >> aw this is what I fear the most. Totally clueless with this one. :(
As Aaron said before, with time and money, anything becomes possible ;)
/Dirk
Just take a look at the blog package source, they also use the umbraco eventmodel to do some actions. Just pick the right action and you're good to go!
You might also find that there are some modifications required to the blog package. For example, if you use tags for your blog post all tags will be shared amongst all blogs.
is working on a reply...