Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • curlybub 133 posts 107 karma points
    Jul 08, 2009 @ 07:01
    curlybub
    0

    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?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 08, 2009 @ 07:29
    Aaron Powell
    0

    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)

  • curlybub 133 posts 107 karma points
    Jul 08, 2009 @ 08:32
    curlybub
    0

    Hi slace

    Aw! sounds complex for me. Does this mean that I need to alter the umbraco source code?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 08, 2009 @ 09:16
    Dirk De Grave
    1

    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

  • Petr Snobelt 923 posts 1535 karma points
    Jul 08, 2009 @ 09:18
    Petr Snobelt
    0

    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

  • curlybub 133 posts 107 karma points
    Jul 08, 2009 @ 10:19
    curlybub
    0

    but you'll have to write some custom code/user controls >> aw this is what I fear the most. Totally clueless with this one. :(

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 08, 2009 @ 10:49
    Dirk De Grave
    1

    As Aaron said before, with time and money, anything becomes possible ;)

     

    /Dirk

     

  • Remco 5 posts 1 karma points
    Jul 08, 2009 @ 11:17
    Remco
    0

    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!

  • Paul Blair 466 posts 731 karma points
    Jul 08, 2009 @ 23:57
    Paul Blair
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft