Community

How can I have a content type that directly associated with the authenticated user?

let's say I have a web site that has a "resume" form designed only for authenticated users. After the users log in, they can submit their resume. later they can come back and view/update their own resume.

I am trying to build a content type called "resume" programmatically. However all of content type creation samples I read don't work this way. After the new content is created, it doesn't have any association with the user who created it anymore. If I come back via navigation menu item "Create content", I still see a blank content you have to create again. Even though I can try to directly access the content I created early, it becomes available to all authenticated users.

So how can I have a content type whose content has directly association with the authenticated user who creates? is this the right way to create this "resume" form with content type in Drupal? Can anyone give me some advices here?

Thanks,

John

Comments

This should be easily doable

This should be easily doable without any coding using the Content Profile module.

Content Profile may not be what I want

Thanks Coery, I may present a wrong sample using "Resume". I am building a content type programatically. I want the node created by the user can only be viewed/edited by either the Admin and the user owner. I thought the "Resume" may be a good sample to my issue. What about node access module?

Thanks,

John

nobody click here