How to allow anonymous user to create a content (page or story) and enter his name and email address (similar to comments)?

mysticgeek - August 9, 2009 - 18:25

Hi All,

I am a .NET developer and newbie in drupal development with a week's experience :). I've permitted anonymous user to create a page/story. Now any visiter can create page by entering title and body, however I couldn't find the way to accept his name and email-ID.
The same can be easily achieved in comments section.

Is there any way I can configure drupal to accept name and email-ID?
also i was wondering, if I create a new content type, from which content type it gets derived from?
If I want to automatically send an email to the visitor after approval, which module is best suitable for me?
(Right now I am reading about 'comment notify' module which looks like what i want)

Drupal does not allow you to do that out of the box.

kaakuu - August 9, 2009 - 18:36

Drupal does not allow you to do that out of the box.

You may be able to do so by struggling with the module called CCK but in all probability there will be a strange situation when users will use Search to find that name.

For registered users they have to hit "User" tab of search and for this Anon user who used his name they have to hit "Content" tab of search. Moreover search in all probability will expose the email field which in any case or in many cases must be kept private.

You might file an Issue or if you have financial support you may write to Acquia - probably they can help to solve certain per user cases.

But then how does it's allowed in comments?

mysticgeek - August 10, 2009 - 06:40

Hey Kaakuu,

Thanks a lot for the immediate reply!

I completely agree with what you are saying.
but the thing is I am working on such a site where admins will be the only registered users. and site doesn't have anything related with search.
as far as I can understand, the problems you have mentioned are related to search.
also I don't want to expose anon user's email-Id, i just want to send the 'thank you' mail for their precious post.

There must be some workaround.. like somehow if i can create a content type which will have all the functionalities of 'comments' module.
(I've studied few .module files and seems pretty simple due to hooking logic, neatly written code and proper commenting.
thanks to all drupal module developers !!).

_

WorldFallz - August 9, 2009 - 19:16

You could probably do this with cck fields for name and email and optionally use content type permissions and content field permissions to control access to those fields.

New content types aren't derived from any existing content type, there are default settings that new content types have which you can edit.

As for notification, you don't explain what "approval" actually is so it's difficult to recommend a specific solution. Though in general, i use the rules and/or notifications module for this type of stuff. Comment_notify does one thing and does it well-- but it doesn't sound like that's what you need (depending on the "approval" process).

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Thanks friend, Seems I have

mysticgeek - August 9, 2009 - 19:33

Thanks friend,

Seems I have to study CCK now :)
due to deadlines i don't want to spend lot of time on searching and filtering irrelevant stuff.

Can you guys suggest me few good url's ?

Let us know if you solve this one

lhorthy - August 12, 2009 - 20:20

I am trying to do the same thing. If you find a solution please share it. There are some videos up on http://www.lullabot.com/articles/free-drupal-cck-views-video-chapters and http://drupaldojo.com/lesson/site-launch which should help with learning CCK. Also the book Using Drupal has much detail.

Problem solved !!

mysticgeek - August 30, 2009 - 14:10

I have studied CCK module found that this is exactly the same what I needed. I've created a new content type which is visible and ediatable for annonymous user(through permissions). added the required fields using CCK module's options.
It is really simple to use. You just have to explore a little bit to get the desired outcome.
This is the first CMS i'm working on. N i'm impressed to see how drupal has made web development so simple !! :)

Note: Don't forget to set the field visibility to annonymous users. the fields added by CCK are not visible to anonymous users by default.

hi : how do make drupal

ctx2002 - October 26, 2009 - 23:19

hi :

how do make drupal accepting anonymous's submit?

I have set permission to allow anonymous user create a page, but when
the user submit a page, drupal said "page not found", and i have checked at backend,
there was no page created.

Subscribing, needing the

Summit - November 6, 2009 - 19:44

Subscribing, needing the same..dont know solution yet..
greetings, Martijn

Greetings,
Martijn
if you appreciate e-development work, please place a link from your site to www.trekking-world.com

 
 

Drupal is a registered trademark of Dries Buytaert.