New Sueetie Login and Register Placeholder Controls

I needed a smarter Sueetie placeholder control to display a "Request Invite" link in place of the "Join" menu link for the new Invitation Only Registration Option.  In the past we used Sueetie UserRolePlaceHolder Controls to display or hide links based on user authentication.  To display a link based on one of the site’s five RegistrationType settings we needed more than the UserRolePlaceHolder Control’s True and False Content Template options.

Registration Placeholder Control

Here is the RegistrationPlaceHolder control HTML in action. The three display options are Closed, Register, and InviteOnly. Closed and InviteOnly are self-explanatory. "Register" covers all other registration options: Automatic, Email Verification and Administrative Approval.

Image

Login Placeholder Control

After creating a RegistrationPlaceHolder Control to support all of the Site’s RegistrationType Setting properties I created a LoginPlaceHolder Control. The main objective of the Login Placeholder is to provide an option to display or hide the "Login" link when registration is closed.

Image

Article written by

A long time developer, I was an early adopter of Linux in the mid-90's for a few years until I entered corporate environments and worked with Microsoft technologies like ASP, then .NET. In 2008 I released Sueetie, an Online Community Platform built in .NET. In late 2012 I returned to my Linux roots and locked in on Java development. Much of my work is available on GitHub.