How to change login page title

This topic has 14 replies, 4 voices, and was last updated 5 years, 6 months ago by Firos.

  • Author
    Posts
  • #8883
     Firos
    Participant

    I have changed favicon.ico

    How to change login page title for a Realm and All realms ?

    #8890
     Rajesh R
    Participant

    @Firos Can you elaborate a bit more on what changes are you trying to make in the OpenAM Login Page?

    #8903
     Firos
    Participant

    Rajesh,

    I am trying to show Page title as “Realm1” for Realm1 users, “Realm2” for Realm2 users, etc instead of showing “OpenAM”.

    I think to achieve that i have to change property “htmlTitle_Login”, located in “amAuthUI.properties”.

    But i couldn’t find such a file in WEB-INF/classes

    Where property “htmlTitle_Login” resides in OpenAM 13 ?

    Is it common for all realms? Then how to customize it for different realms?

    • This reply was modified 5 years, 6 months ago by Firos.
    • This reply was modified 5 years, 6 months ago by Firos.
    #8947
     Scott Heger
    Participant

    The amAuthUI.properties file is within openam-core-13.0.0.jar. Extract that jar, grab the file and put it in your /openam/WEB-INF/classes directory and edit as you see fit. Restart OpenAM for changes to take effect.

    #9003
     Firos
    Participant

    Extracted “openam-core-13.0.0.jar”

    Updated “htmlTitle_Login” property in “amAuthUI.properties”

    Put it in “/openam/WEB-INF/classes” directory

    Finally restarted OpenAM.

    But title not changed. Anything more need to do?

    #9080
     Scott Heger
    Participant

    Ah, you must be using the XUI then. That title is defined in /openam/XUI/index.html. It’s not a variable so I’m not sure how to customize that on a per realm basis.

    #9081
     Firos
    Participant

    Oh ok, then in common i can change index.html

    #9105
     Firos
    Participant

    Scott, Changed index.html and its working fine with my new title.

    Hot to make “Page Title” Realm specific ?

    #9153
     Scott Heger
    Participant

    @rajeshr has a number of video blogs on customizing the XUI. I don’t think I saw in those how to customize the title on a per realm basis, but maybe he can chime in here if he knows.

    Another way, if no official way from ForgeRock, would be to add some javascript that would look for the “realm” parameter in the request and then dynamically set the page title based on the realm. Here is one example of javascript that can set the page title: http://www.javascripter.net/faq/windowti.htm

    #9194
     Firos
    Participant

    Scott,
    You are right, i have gone through those videos from Rajesh, couldn’t find realm specific title customization related things.

    #9195
     Firos
    Participant

    @Rajesh, we expect solution from you

    #9244
     Scott Heger
    Participant

    No pressure @rajeshr. :)

    #9287
     Firos
    Participant

    No pressure, but pleasure @Rajesh :)

    #9365
     Peter Major
    Moderator

    Rather than expecting a solution from someone else, you could try to investigate the problem yourselves ;)

    #9370
     Firos
    Participant

    Yes Peter,

    We achieved it,

    Realm Specific Page Title:

    1. create a folder called relam1 under openam/XUI/
    2. copy css and templates folders from XUI to XUI/realm1
    3. Add,

    <script language=”javascript”type=”text/javascript”>
    document.title = “New Title”;
    </script>

    in,
    /XUI/realm1/templates/common/LoginHeaderTemplate.html

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?