# Drupal tips and tricks
## Disable request new password on /user
Install module [No request new password](https://www.drupal.org/project/noreqnewpass). 

* configuration: admin->people->tab NO REQUEST NEW PASSWORD

## Disable "edit profile for specific roles"

Install module [User Readonly](https://www.drupal.org/project/user_readonly) and configure.

## Disable "access to urls for specific roles"

Install module [Path Access](https://www.drupal.org/project/path_access).

Example: forbid access to "edit profile":

* configuration: admin->configuration->Path Access. 
* edit the role for which you want to disable "edit profile"
* check  <i>Access every page except the listed pages</i>
* enter <i>user/*/edit</i> in the textbox

See [css](../css) to learn how to remove the edit button, but this is theme-dependent.

## Forbid access to content for selected roles

See <i>Disable edit profile</i> above. Enter the forbidden paths in the textbox.

## Registration of new users only by admin

* admin->configurartion->Account settings->REGISTRATION AND CANCELLATION
* check <i>Administrators only</i>

## Disable menu items per role
* Install module [Menu item visibility](https://www.drupal.org/project/menu_item_visibility)

## Place "main menu" on top
* See  _sorry, not available here_<!--[the local css for this site](../../sites/all/themes/mijnzen/css/local.css)--> after ` /* main menu to the top: */ `

## Module filter
* module [module filter](https://www.drupal.org/project/module_filter) makes life easier in the modules tab.

## Access document root in menu
Example: you want a menu item with a link `/notes/notes.php` You cannot put that in a menu item,
Drupal wil complain that no such node exist. Solution:

* specify `http:/notes/notes.php` This, however is not understood by the gnome epiphany browser.
* specify `http:../../../../../../../../../../../notes/notes.php` The gnome epiphany browser interprets
  this correctly. Use as many `../` as the maximum depth of your site, and some more.
