I want to make one website with for instance 10 pages/nodes.
User 1 can edit the node 2, User 2 can edit page 5, User 4 can edit page 4, ...
How can I make this possible with drupal modules without custom dev?
you could create a role for each user (if there are really just 10 nodes/users) and use the Content Access Module to controll, who can edit what page...
This module allows you to manage permissions for content types by role and author. It allows you to specifiy custom view, edit and delete permissions for each content type. Optionally you can enable per content access settings, so you can customize the access for each content node.
unfortunately, i'm not totally sure, if this works without any custom development.. you should give it a try
In fact, no modules are needed.
What I've done is :
Create Role that can create one specific node type - called fullUser
Create role that can only edit it's nodes - called regularUser
Then after, for each user:
Create user, set fullUser
Connect with this user and create a node
Change rone from fullUser to regularUser
Now the user created can only edit it's node
Related
I am creating a management website. Super admin can create users. Users can create nodes. I need to know how to add that newly created nodes to the groups that users are in.
The group that you want to say is called roles in Drupal.
For example: When a user creates a node, this user has a role "editor". Then, the node was created by editor.
You can modify the permission from this path. Article: Create new content /admin/people/permissions.
Now, if you want to show the role in the content view, you have to edit the display view /admin/structure/types/manage/article/display and show the author block.
Currently I'm looking for a way to give access to the subscribers list which is belongs to the Leaky Paywall plugin.
The main goal is that when the editor (3333) will login then he should have access the subscribers list like the administrator has since here the administrator has the option to edit the subscriber's information on admin area. I need to give same access for that specific editor so that he can edit all the informations for any subscriber from the list.
There are 2 ways to do this.
1. Let Editor to manage users. Here is an article you try: let editor manage users
2. Create custom create custom user role, and add capabilities to this custom user role so that it can manage subscriber list. Basically, you can just combine https://codex.wordpress.org/Function_Reference/add_role and example from 1.
For example: let's say your new user role is user_manager. When editor (3333) will login assign him/here to user_manager so that he/she will have editor capabilities and also can manage subscriber lists.
I will really recommend to user option 2.
Simple question for all of you here dealing with Drupal 6.x...
With Drupal's Add More module, is there a way to configure my webform so that there is no limit on how many of a specific fields I can add more of?
Please see my image for example:
For example, I'd like to enable the user to add as many titles as they would like. Is that doable?
Unfortunately, it's not currently possible to add unlimited "add another" functionality with webforms. And if this functionality does become a reality someday, I doubt it will be backported to the Drupal 6 version of the module. From the webform modules author (quicksketch):
there is no progress on this subject. The ability to support multiple
values requires a tremendous amount of re-architecting, including
changes to the way CSVs are generated, analysis, the database
structure, and the UI (both for administrators and users). I wouldn't
expect this feature to be added any time soon.
See this thread for more information:
http://drupal.org/node/354381
I would suggest using a node and the CCK module plus rules and views to collect this information.
Assumptions:
Anonymous users can fill out the current form
You need some way of retrieving the data that is submitted
Regular users of the site should not be able to view submissions
Very loose directions:
Create a content type and add all of the fields that your current webform contains to it. CCK has the ability to store unlimited values out of the box. On the field settings page, inside the Global Settings fieldset, select "Unlimited" for the "Number of Values" field.
Give anonymous users permission to Create [your-new-content-type] Content on the Role Permissions page.
Using the Rules module, create a new triggered rule that fires on "Content is about to be viewed" with an condition "Content has type [your-new-content-type]" and an action of redirect to homepage (or a custom error page that you created). (Note: this is a bit of a performance hit. There are better ways to restrict access to this content type, but for the sake of this tutorial, this was the easiest to explain)
Using the Views module, create a new view with Style set to Table. Add each of the fields in [your-new-content-type] in the fields section. Under "Access" choose "role" and select the role that is assigned to your user. Add a "page" display, give it a Path and save. This is the page you will use to view submissions.
Optional:
Use the Rules module to send yourself (or the submitter) an email when a node of [your-new-content-type] is created.
I have a set of records which 1 column called "Site" (I used CCK for this)
I want some user to access Site A data while others just access Site B
I enabled Profile module, add a custom field called Site, then for user 1, I set the value of that Site field to A, and for user 2, I set it to B
However, I don't know how to specify the Filters in Drupal Views to compare that "Site" field in CCK object with the "Site" field in the Profile of current logged in Users
Anyway to do this or any other equivalent way to restrict access to data based on custom fields in User Profile ?
Thanks
You might want to check out the content profile module: http://drupal.org/project/content_profile. It allows you to create a new content type to extend the user profile. With this, content profiles are essentially nodes and will give you more flexibility within views.
Also, I'm not sure I completely understand your problem. You state:
I want some user to access Site A data
while others just access Site B
This sounds like you need to set up different roles to assign users and use one of Drupal's access control modules like content access:
http://drupal.org/project/content_access
http://more.zites.net/content_access_for_drupal_6
I have two types of users on my site:
Normal user
Supplier
How do I set up Drupal so that you can choose which type of user you want to be before signing up, and then also (and this is the tricky part) give different profile fields to the different user types?
Consider the Auto Assign Role module. Here is a quote about it (from the module's project page):
... serves three primary purposes. The first is to provide an automatic assignment of roles when a new account is created. The second is to allow the end user the option of choosing their own role or roles when they create their account. The third is to provide paths that will trigger a specific role when an account is created. The administrator has full control over these functions and can have them working together or independently of each other. Auto Assign Role is integrated with the Content Profile module so that you can have content types serving as registration pages. You can even replace the default user/register page with a customized version of your own design.
Use the User Types module. Here is a quote about it (from the module's project page):
... gives you the power to make custom profiles for certain types of users. The core profile module must be enabled for this. It let’s you determine for which profiles a field will be active. For example: If we want a field where you can enter who’s your favorite band, you create this field and at the bottom you can choose for which user types (which you defined earlier in admin/user/user_types) this field will be active using the checkboxes. It’s that simple. It's also possible to automatically assign a role per user type.
Important: This module uses a theme override to hide profile categories which are empty for the associated user type id. Make sure to consult the documentation to copy the PHP snippet into your template.php.