Skip to Content
author's profile photo Former Member
Former Member

Modifying Portal Logon Page

Hello *,

this is my fist post in SDN, so please excuse if this questions was still posted, but I couldn't find an answer

for this:

We wan to change the initial logon page in

com.sap.portal.runtime.logon

We did all necessary changing within UME and all the other

stuff, so this is not the problem.

What we want is to change the ume.logon.branding_text

to print out on which portal instance you are, like

if you are on the DEV-Portal that you will see a text

like

"DEV - Development Enterprise Portal"

Thanks for your help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2005 at 04:41 PM

    Hi Mike,

    This is what I did, it worked out quite well. It displays the text to notify the user which system they are logging into.

    Modify the umLogonPage.jsp in the logon par file by adding the following:

    function displaySystem(system) {

    document.write("<tr>");

    document.write("<span style='font-size:10.0pt;font-family:Arial;color:#CC0000'>Please Note that you are logging into the </span>");

    document.write("<b>");

    document.write("<span style='font-size:12.0pt;font-family:Arial;color:#CC0000'>");

    document.write(system);

    document.write("</span>");

    document.write("</b>");

    document.write("<span style='font-size:10.0pt;font-family:Arial;color:#CC0000'> Portal Environment</span>");

    document.write("</tr>");

    }

    Then right after the "<table border="0" width="301" height="100" align="left" cellspacing="0" valign="top">" line in the logon form add this:

    <script language="JavaScript">

    if (location.hostname=="yourdevhost.yourcompany.net") {

    displaySystem("Development");

    }

    if (location.hostname=="yourqahost.yourcompany.net") {

    displaySystem("QA/Training");

    }

    </script>

    Hope that helps.

    Robin.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Robin,

      thanks for your answer - this might probably solve the problem.

      But, do you have an idea how to get the J2EE-Engine Instance

      Name <b>via Java</b> <i>not via JScript</i>?

      Greetz,

      Mike

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2005 at 10:36 AM

    Hello Mike!

    The branding text is a gif image.

    ume.logon.branding_text=/logon/layout/branding-text.gif

    You will have to create an GIF image for each instance and put the image on the server. If you have already done so, this could be a caching Problem. Try CTRL+F5 for reloading the logon screen.

    Hope it helps,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.