Skip to main content

Turns the login form into a portlet manager for easier customization

Project description

Introduction

collective.pluggablelogin overrides the standard Plone login form with a template using a portlet manager, so that various login components can be configured.

https://github.com/collective/collective.pluggablelogin/raw/master/screenshot.png

Configuration

Go to the Addons control panel and activate “Pluggable Login Page.”

Now if you go to /login while logged in as a Manager, you’ll see a “Manage portlets” link which you can use to manage the available login portlets. By default, the standard login portlet and a registration form portlet are enabled (the latter is only shown if self registration is enabled for the site).

As well as manual assignment via the web interface, the pluggable login page can also be assigned portlets via GenericSetup, in the same way as Plone’s other portlet managers can. For example, to register a custom porlet on the pluggable login page, use this an example within portlets.xml inside a GenericSetup profile:

<portlets
    xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    i18n:domain="plone">
 <assignment
    name="navigation"
    category="context"
    key="/"
    manager="collective.pluggablelogin"
    type="my.product.portlets.CustomLoginPortlet"
    insert-before="*"
    visible="True">
    <property name="title">string:Login portlet title</property>
    <property name="description">string:Example property</property>
 </assignment>
</portlets>

Credits

Developed by David Glick and Groundwire Consulting. Sponsored by the Innocence Project.

To-do

  • Refactor inline styles on the logged in or out views.

Changelog

1.1 (2014-01-30)

  • Add id to the login-portlets div, ensuring the element can be selected on the page. [davidjb]

  • Improve styles for login page, normalising with logged out page. [davidjb]

  • Add logged out page templates to display pluggable login. [davidjb]

  • Improve styles and formatting for login page. [davidjb]

  • Fix issue with empty <div> generated on login page after trailing </html> end tag. [davidjb]

1.0 (2012-05-10)

  • Initial implementation [davisagli]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.pluggablelogin-1.1.zip (73.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page