cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying Portal Logon Page

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello Christian,

this wasn't my question. I'd like to replace the

picture item with a text, that is autmaticly generated

( with java ) to display the current J2EE SID or something

else.

Greetz,

Mike

Former Member
0 Kudos

Hello Mike!

Perhaps you will find the informations at http://help.sap.com/saphelp_nw04/helpdata/en/23/c0e240beb0702ae10000000a155106/frameset.htm useful.

Regards,

Christian