Hi all, forgive me if this is posted elsewhere, but I have done many searchs and not found any results that explain this.

Firstly, I have CCK installed, and I also have views installed.

Now, I would like to have an anonymous user be able to submit a form(that I created, with specific form elements) to create a node. The problem is, I can "create" the content as an anonymous user, but I can't get rid of the Title/description textbox no matter what I do. I only want the FIELDS I want to be displayed to the anonymous user. In other words, I want the title of the node to be non-existant.

I can display the nodes just fine, I just can't display the form to create the node correctly. It's as if CCK is not made to display a form to the user?!? I must be missing something...

How can I go about auto-assigning a title so that the anonymous user does not have to enter in these fields? Are there any modules I can use?

Thanks in advance!

Comments

akolahi’s picture

you can get rid of the title with the Auto Node Title module http://drupal.org/project/auto_nodetitle

displaying the form is easy you just browse to /node/add

You need to make sure an anonymous user has the proper permissions to create the node type which you just created.

groenm’s picture

To get rid of the description field:

  1. Go to Administer -> Content Management -> Content Types;
  2. Click edit for the content type you intend to change;
  3. Under Submission form settings remove the label text for description.

To get rid of the title field: Use Automatic Nodetitle (http://drupal.org/project/auto_nodetitle)

Mark

pumpkinkid’s picture

Why not use the Webform Module?

Having anonymous users adding content using CCK is not always a good idea. Like you said, CCK is not really made to display forms to a user. CCK is meant to add fields to a content type.

panthar’s picture

Thanks for the replies everyone.

The reason why I am trying to use CCK is because the nodes created from the anonymous user HAVE to be searchable.

Maybe I am going about this wrong? Will this work with webform? I am still kind of a drupal newb, any advise/direction would be much appreciated.

WorldFallz’s picture

webform is does not store it's data in the db and is therefore not searchable. Based on your description, you do want a cck content type-- just use the auto_nodetitle module to set and hide the node title as suggested by the previous posters.

panthar’s picture

Awesome,

Will do it that way. Thanks a lot for the advise.

akolahi’s picture

also, if you are doing a form chances are you want anonymous users to fill out the form but do not want anonymous users to be able to view the nodes that are created. Furthermore, you may not want the nodes to be picked up by search engines. That is a typical situation for forms. If that is the case than be sure to use a module like Content Access http://drupal.org/project/content_access to allow anonymous users to be able to create the content type, but not be able to view the content type.

Furthermore, if that is the case (and even if it is not) you may want to also use the module Custom (form) Destination http://drupal.org/project/customdestination this will allow you to direct users to another page after they fill out the form, perhaps a page that says something like 'thank you for filling out this form'...