Hi,
I'm still trying to get my head around all things Drupal...
I'm creating a Bed and Breakfast listings site. I want each B&B host to be able to create their own entry and edtit it when they need to.
I have created a new Role "BB Host".
I have also created a new content type, "Host".
On the permissions page, 'Node Module" section, The BB Host is able to:
Access Content
Create Host content
Delete own Host content
Edit own Host content
However, when I'm logged in as a BB Host, I can create content just fine but I can't edit the content. In fact, I can't see any menu referring to 'My Content" or anything similar.
The only way I can allow the BB Host access to the published content is to allow them rights to the System Module > "Access Administration Pages". Then the "Administrate" > Content management menu appears but it says "You do not have any administrative items".
If I then give the user rights to Node module > Administer nodes they seem to be able to edit *any* content.
How do I give my BB Hosts the rights/opportunity to edit *only* their own content?
Desperate for help on this one, it's driving me crazy...
Thanks :-)
S
Comments
Does the content type "host"
Does the content type "host" have any fields associated with it that appear under the Permissions heading "content_permissions module" ?
You assigned the permissions Access Content, Create Host content, Delete own Host content & Edit own Host content to the "BB Host Role", but did you give the "BB Host" Role to the user?
If still no luck, try to give "BB Host" Role Access Content, Create Page content, Delete own Page content & Edit own Page content...then see if you can still reproduce the issue with Page content.
Clear you Views Cache.
scubasmurf,
scubasmurf,
Thanks for helping me out here...
1) I can't see a heading "content_permissions module" on my permissions page, so I guess the answer to that one is no.
2) I have definitely given the user the role "BB Host".
3) The behavior is the same.
I should perhaps expand... the user *can* edit the page immediately after creating it. However, if the user navigates away from the page/entry, such as by clicking the "My account" link, there's no way to get back to the content using the links on the left side of the page.
The user has to use the search facility, search for their own content and then edit it, which they *are* able to do.
Surely there should be a 'My content' link somewhere when a user is logged in?
Edit: A workaround appears to be to enable the 'Tracker' module. Then the user can track and edit their recent posts.
Seems clunky to me though...
S
No standard 'My content' link
Apparently, your BB Host is able to edit his own content, he just doesn't have an easy way of finding his own content back.
A link such as 'My Content' is not part of a standard Drupal install. However, you can create such a link. For example, the Views module (http://drupal.org/project/views) allows you to filter for content with the current user as author. If you further set options for the menu setting, you will have a 'My Content' link.
Mark
Mark, Your understanding of
Mark,
Your understanding of my issue is correct. :-)
I think I'm fixed now though. The tracker module does what I need even if it's not as simple as I would like it.
Thanks for your help guys.
S