ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker author_only="yes" - moderators?

August 28, 2011 1:32pm

Subscribe [4]
  • #1 / Aug 28, 2011 1:32pm

    Osze

    42 posts

    Hi,

    I’m building a community with members that can post their own articles, news, blogposts etc. with safecracker.

    It works great with:

    author_only=“yes”

    I would also give some members “moderator” status and let them edit ALL posts using safecracker. I know it works if they login to the CP but it would be more awesome if they didn’t need too.

    Is there a solution?

  • #2 / Aug 29, 2011 3:44am

    John Henry Donovan

    12339 posts

    Hi Osze,


    Why not just let them login via the frontend?
    They will need to login either way. Create a new member group for them in your control panel and then assign the members to it.

    Does that help?

  • #3 / Aug 29, 2011 8:04am

    Osze

    42 posts

    Hmm, the nice function with safecracker edit is that a visitor can click on a specific page and edit just that page.

    The CP is a bit confusing and I think my visitor will get scared when they have to edit in the CP.

    But I guess there is not other solution.

  • #4 / Aug 29, 2011 8:37am

    Sue Crocker

    26054 posts

    Hi, Oszo.

    What you can do is create an Edit this link for individual members, and that way they can get directly to the back end to edit.

    See: http://eehowto.com/howto/articles/howto-add-an-edit-this-link-in-ee2

  • #5 / Aug 29, 2011 10:41am

    Rob Sanchez

    335 posts

    You might be able make the author_only param a conditional

    {exp:safecracker .....   {if logged_in_group_id != 1} author_only="yes" {/if}  }
  • #6 / Aug 29, 2011 11:13am

    Osze

    42 posts

    Thanks for the suggestion Sue. I might use it but it’s not ideal that the moderators must use CP.

    Rob - Unfortunately that doesn’t work. It would have been great if it did! :( Thanks for the try.

    It’s not a functionality Safecracker might build in the future? It would be so awesome if it worked!

  • #7 / Aug 29, 2011 12:28pm

    Sue Crocker

    26054 posts

    Have you tried to do the conditional before the safecracker call? Untested on my end, but that’s what I’d try next.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases