Custom login page no hardcoded runmodes? | Community
Skip to main content
何塞90_X
Level 3
October 26, 2019

Custom login page no hardcoded runmodes?

  • October 26, 2019
  • 0 replies
  • 979 views

Hi guys,

Many times when we customize the AEM login page we hardcode runmodes. Even though this gets the job done, there is a better way to do it using OSGi configs and Sling. The steps are as follows:

1) Create a service that takes OSGi configurations.

2) Create the required OSGi config nodes under the required runmodes.

3) Call the service from your login.jsp

To find out details please see my latest blog post here.

Hope you find this useful!

約瑟。

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.