I have created a user account. Then signed out of admin and logged in with the new user account. But the new account does not have a logout link, So how can i show it to the other users ?
4 Answers
Create a link to user/logout
. It can be a menu item or an HTML link in a block.
The logout link is included in the user menu that is standard to drupal.
Make sure the equivalent user menu block is active in an appropriate region and you will have your logout link
Step by step instructions:
In the view that you want to add 'logout' link
- Add new field
- Select 'Global: Custom Text'
- Uncheck 'Create a label'
- In textarea put: 'Logout'
- Click 'Rewrite Results'
- Check 'Output this field as a link'
- Link path: 'user/logout'
- Save
That's it.
For this you have to follow the following Steps: --Login with Admin --Go to the option of People --Now you have to click on "permissions" option --Here a list of various permissions is open --Now search "Toolbar" where you have to tick on the option of "Use the administration toolbar" for authenticated user --Just save it and it done.