Drupal 7 user login page template
Drupal 7: Template for user registration page? Ask Question. Asked 9 years, 3 months ago. Active 7 years, 9 months ago. Viewed 9k times. Dustin Dustin 3, 10 10 gold badges 50 50 silver badges 85 85 bronze badges. Add a comment. Active Oldest Votes. Will Will 2 2 silver badges 9 9 bronze badges. I recommend using the theme developer module It will show you all the template suggestions for any given page, and what to call them. Also This is a great resource.
Sean Robertson Sean Robertson 1 1 silver badge 8 8 bronze badges. Drupal 7 Add this code to your template. Add this code and change "yourtheme" to your theme name. AdamG AdamG 2, 3 3 gold badges 21 21 silver badges 32 32 bronze badges. Another way will be using "Panel" to create custon registration page : Install and enable Panel Module Create new page "registration page" and design the layout Add content to your regions.
Next I looked around drupal. This took me a several hours but finally I pieced together code from a bunch of posts and came up with a method that worked well for me. You can add this code to your theme's template.
Here we tell Drupal that we want a user-login. You can now create a user-login. Note that there are no "double dashes" in this file name as is typically traditional with Drupal 7 template file names. A trivial way to theme our custom user login is to simply render all the fields at once in your newly created user-login. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search.
Most of the tuts I found want me to edit the code in template but I am not sure about editing the code, so, thought of asking is there any easy way to create Login Form in Drupal 7. So, far I have made a Page called login gave it a title with empty body , Configured user-login block to be shown in content area and be displayed only in login page. So far so good, it looks cool, but the thing is: after logging in I can see the same login page as Blank Page.
I did something like the login page would only be accessible by anonymous users but no luck. My quest is either I should be able to redirect the users to main page after logging in, or have a separate login page instead of using the block which came by default with D7 installation.
Any ideas??? I entered the login as a menu-item but visible for all just not as obtrusive as the login block. It will be visible for users who are not logged in, and disappear when they are.
Consider using either the Luxe or LoginToboggan modules, as they do exactly what you're looking for. To redirect the user to specific page after login, you can consider LoginToboggan , Login Destination or Login Redirect module. Sign up to join this community.
The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
0コメント