I was tasked to clone a user role for a site the other day. Here are the options one has:
- Execute a db query -> not user-friendly
- Create a new role, then manually set the same permissions as another role -> endless scrolling and clicking on checkboxes ; becomes worse the more contrib with additional permissions a site has (or many content types, since they also add multiple permissions); becomes even worse if the role you want to clone has many permissions assigned to it (might also become a victim of https://www.drupal.org/project/drupal/issues/1203766 if the site has many roles)
- https://www.drupal.org/project/duplicate_role (have not actually tested it) -> not ported to Backdrop
We should have a "Clone role" action.
GitHub Issue #:
3813
Recent comments
In page.tpl.php you can get the current path and add it to the class array $classes[] = 'path-' . str_replace('/', '', $_SERVER['REQUEST_URI']); You will get an original class for each page....
Insert custom class into body tag
https://www.drupal.org/project/views/issues/1266388 shows that this is an architectural issue, and requires another 2 hooks being adjusted. It would be really nice to add comments/notes to...
node access
Hmmm, from D7 ancient tomes: from https://drupal.stackexchange.com/questions/7056/limit-which-roles-can-view-a-node-basing-on-its-content-type yet https://docs.backdropcms.org/api/...
node access