How to make a page visible only to users with permission to use the...
I have created a basic page which I only want to be viewable by people who have access to the administration theme. I have given the page a path of admin/shipping-help but to my surprise the page is...
View ArticleHow to import multi-value fields into profile2 using the Migrate module
I have users each with a profile using the profile2 module. I am using a cookbook based on the Migrate framework to create the users and import profile data.Sample CSV data would...
View Articlegive permission of create new revision to specific roles
I need to give the permission of "create new revision" to a specific role. but nothing related to this issue appeares in permissions page! I've installed Revisioning module too.how can I set it?
View ArticleSaving user data fields through REST API (or other methods)
Currently, I am using drupal as a decoupled implementation for my website. I got login, sign ups, and verification all working.I am trying to implement the ability to save values (settings) to a custom...
View ArticleGetting access denied to anonymous user
I've done a migration from D7 to D10. It borked the anonymous user, so I reinstated it. Status report on the D10 site is OK. But Im getting Access Denied page for the anonymous user throughout. Not...
View ArticleHow to show view for submitted result of a webform by a user
How i can show all submitted value of a webform by a user in a view in a tab of a user profile section.Iam using drupal 6.For example when user click on a tab say form on his profile the webform value...
View ArticleHow do I add fields and hide them from client?
I added fields to a Client profile using Profile2, such as first name and last name. But I added another fields, let's call it "Assigned Consultant". But the "Assigned Consultant" field...I don't want...
View ArticleSend an email when the roles are changed
I'm trying to send an email to users after their role has changed. So far, the rule is triggered every time the profile is saved (even without role change); I suspect that the data comparison is not...
View ArticleWhy is the login redirecting to the access denied page?
This question has been asked before but I see only D7 versions of the question, and none of their answers have helped me in D8.I log in perfectly fine with Chrome or Firefox, but IE 11 redirects to the...
View ArticleDisplay user list with number of comments and forum posts
I want to create blocks to display a list of all users with their number of comments and number of post on forum.In SQL, something like that :SELECT u.name as user, COUNT( n1.nid ) as 'number of post',...
View ArticleHow to handle multiple stores and multiple store admin users
Is it possible to create a restaurant(multi-store) online delivery system using Drupal commerce and OG? It has multiple stores(restaurants) in different locations which can be manageable by individual...
View ArticleSync user roles across websites
I am using Drupal 7. I want to sync my Drupal website roles on 2 websites on the same top level domain, as in, one is example.com, the other is other.example.com, how can i achieve this? Bakery module...
View ArticleRedirect user to previous page after registration
I'd like users registering on my website are redirected to the page where they clicked the "create account" button which is in a modal.First, I tried to redirect to an absolute urlI tried...
View ArticlePermission for translating menu items via the menu config screen
I have a multi language Drupal site, Using i18n and the entity translation approach. Translating menu items from an node works well, but not all the menu items are driven by the nodes.Now as user/1, I...
View ArticleHow to set Permission based on roles for Views Data Export
Using views data export module, I set the permission for different roles in the Data Export in Views like:But I can still see the Export button for all users in front page. However if the role doesn't...
View ArticleHow to add profile fields on Ubercart 3 checkout page?
I used to use the uc_profile module to add user profile fields to the D6/Ubercart 2 checkout page, but I cannot find a suitable solution for that same functionality in D7/UC3. Can anyone guide me...
View ArticleFatal error: Maximum execution time of 240 seconds exceeded in...
I am using multidomain site .After adding a new domain record,I was asked as follows: Content access permission needs to be rebuilt on this page.When I clicked on Rebuild Permissions button,the...
View ArticleHow to prevent other roles from publishing content
I am new to Drupal. I am working on a website where I have 2 user roles: Site admin and editor.The site admin has all permissions. I want the editor to only have the permission to edit content but not...
View Articledisplay view mode on node based on field setting or taxonomy term of user...
I'm using Display Suite which is awesome and an easier solution if you're not a coder. Now that I have created several view modes I'd like to set a particular view mode that is based on a field setting...
View ArticleIs there a way to add node grants to anonymous users?
I want anonymous users to be able to access nodes that are promoted to the front page. (They can't access to nodes that are not promoted.) It seems hook_node_access() isn't seem called for anonymous...
View Article