I want to override the login page using panels. I found a tutorial that shows me how to do it using Panels Everywhere, but that overrides the whole page (with site_template). I just want to override the page content.
Is this possible?
|
I want to override the login page using panels. I found a tutorial that shows me how to do it using Panels Everywhere, but that overrides the whole page (with Is this possible? |
||||
|
|
|
You can override existing paths with the Page Manager Existing Pages Module. I have not used it with a login page but it works well for other cases. You can use it to override an existing page's path and then add the original content for that path as a panels pane alongside your custom additions. |
|||
|
|
|
It's not impossible to do what you want, but it's close. I wont go into the details of how to code it, but will explain what needs to be done. The main problem is that panels can't override existing paths. One solution would be to unset the The other solution would be to use I've tried using the concept in Commerce Panels Integration but found that there were some bugs when doing AJAX stuff. So none of these solutions might be ideal, it depends a bit on what you need on the panels page you are creating. |
|||
|
|
|
I think you already have answer on how to create it with Panels. But my question is why do you want to use panels? Personally I hate panels and always go with custom modules, which are faster to and also version-able. I had a requirement where I wanted to display two forms, one for login, and one for signup (you might have seen these forms in many sites). Also I had to put a custom facebook connect on top. What I did is, created a new menu link
Then I rendered the forms in side this new page:
Of-course this is a stripped down version, but I guess you got the idea. Now, whenever you want the user to login, just redirect here. On the production, you can also disable the default user login page, but I don't recommend. Thanks! |
|||
|
|