Posted by ce05cp2 on November 24, 2012 at 3:43pm
Hello everyone,
I would like to build a website, that someone would just add/view and edit its own content and save it to the database. I want to have every user seeing only his/her content and no one else, except for the admin user.
This is for a part of an assignment. I want to have restaurant users adding their menu (image, price and description), but I want to have several restaurant users. Each user can view/add/edit his/her own content, but not accessing others.
Is there a way to do this? Also, to add such information?
Thank you in advance
Comments
At this point I would
At this point I would recommend using Drupal 7.
As for your questions.
For you can use a content type (for Drupal 6 you will want CCK, for Drupal 7 core includes it as fields).
You can use the content access module to restrict viewing of content to the user (user 1/admin will still be able to view).
Thank you for your reply
Thank you for your reply! I will try drupal 7 now and see
Drupal 7 core
Another question is where in Drupal 7 I can define that the user can see only his/her profile and no one else?
I search the drupal 7 but I am a little bit lost.
Under permissions, under
Under permissions, under "Users" make sure "View user profiles" is not checked for any role other than "Administrator" (it is usually handy to allow users with that role to see the profiles).