2

I'm trying out SafeCracker for the first time. What I've done:

  • SafeCracker module is installed
  • Channel {test_profiles} is created with 1 field: {full_name}

The following code outputs nothing between the tag pair:

<h1>Hello World</h1>

<form>
    {exp:safecracker channel="test_profiles" datepicker="no" include_jquery="no" return="registration/form" safecracker_head="no"}
        <input name="title" type="text">
        <input name="full_name" type="text">
        <input type="submit" value="Submit">
    {/exp:safecracker}
</form>

Any ideas what might be wrong?

EDIT 1: I went to Addons -> Modules -> SafeCracker. I saw a list of my Channels there, including test_profiles. I checked the "Allow guests to post entries?" checkbox and selected one of the members from the "Set the member_id to use for guests." drop down menu. Afterwards, I viewed the template output again. Now I see a <script> and <style> inside the <form> tags. I still don't see my text field, though.

1 Answer 1

2

Does the member group have permission to post to the channel?

CP Home > Members > Member Groups > Edit Member Group > Channel Assignment


This part of the docs should help you allowing guests to post:

It certainly helps me to create a "Logged Out Members" member_group and a single user in that group to take ownership of those entries. (In my case their member_id is '2' as shown in tag example)

My tag looks a little like this:

{exp:safecracker channel="registrations"
                 return="foo/bar/ENTRY_ID"
                 logged_out_member_id="2"
                 ...
                 ...

My CP Home > Extensions > SafeCracker entry looks like this

CP Home > Extensions > SafeCracker

3
  • No, I have not done this! I have several member groups. How do I know which one to set? Dec 15, 2012 at 9:58
  • It seems like I can enable all the member groups to have permission to post to the Channel. So, when the form is rendered and no one is logged in, who's posting? Dec 15, 2012 at 10:17
  • I've just added to my main post to cover the "Who's posting comment" Dec 15, 2012 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.