Restore header login form in DC 1.3 homepage
How can I restore the header login form on the homepage in Drupal Commons 1.3?
It appears on all other pages, except home. I understand this was by design because of the registration form on the home page, but I'd like to have it display on all pages of my DC install.
Thanks in advance.


Comments
You'll want to navigate to
You'll want to navigate to the Context UI (admin/build/context) and edit the Sitewide context (context_ui-global-global). Remove the custom login block that is located in the header region, and replace it with the standard User login block. There is one problem though, I believe the theme only has support for our custom block, and the standard login block may not be displayed inline. If this is the case, you could either add some CSS to the theme, or alter the commons_core.module to never show the 'Already a member?' link. Let me know what you decide and I can provide more guidance.
This didn't work for me
This didn't work for me either.
I don't want the "Already a member" link to appear on the home page. Our requirement is to have the login form available on every page, including home, when the user is not logged in.
I did just end up modifying
I did just end up modifying ./profiles/drupal_commons/modules/features/commons_core/commons_core.module and commenting out the if statement on line #745, cleared the cache and it now displays the login form on the home page header.
I'll need to lookout for this file during the next DC updates.
Thanks!
Trying to same thing, but
Trying to same thing, but removing using context does not seem to work. I even removed from module, but it still shows up in the /home page.
any ideas ?
I never got around to
I never got around to changing this, but it is still a high priority for me as I want to give my users the option of quickly logging in from the home page without them needing to click to a new page. I also have fbconnect enabled, so that makes it even easier for Facebook users to sign in or register.
I am using a modified version of the acquia_commons theme, which I plan to continue to use as a base for as long as Acquia doesn't continue to make drastic changes as they did with v1.3.
This worked for me (not tested too hard)
Commenting out the following from profiles/drupal_commons/features/commons_core/commons_core.module worked for me:
// Determine if we're on the front page
if (drupal_is_front_page()) {
// Only provide a link
return t('Already a member? !login', array('!login' => l(t('Login'), 'user')));
}
This is obviously not advisable in the context of smooth patching and updates, but it does render a direct login at the top of the home page.
Nick.