Article

9159506's picture
article
Reads:

3060

Score:
0
0
 
Comments:

0

Displaying First Name Only in eGuide

(View Disclaimer)

Problem

A Forum reader recently asked:

"When logging in eGuide, in the above header, I see "Welcome : FIRSTNAME Initials LASTNAME" ... I want to get rid of the 'Initials', but I can't find where to do this."

And here's the response from Andrey Karyagin ...

Solution

To display FIRSTNAME only you should implement the following steps:

1. Locate the eguideheader.xsl file. On the Win32 platform this will be:
C:\Program Files\Novell\Tomcat\webapps\eGuide\WEB-INF\templates\xsl\default\browser

On a NetWare 6.5 server this will be:
SYS:\tomcat\4\webapps\eGuide\WEB-INF\templates\xsl\default\browser

2. Look for the "<!-- WELCOME MESSAGE -->" block within this file.

3. In this block, replace

<xsl:value-of select="UserID/value/display"/>

with

<xsl:value-of select="substring-before( 
substring-after(UserID/value/display,'&#xA;'), '&#xA;' )"/>

4. Restart both Apache and Tomcat to see the difference.

5. Implement your own XSL transform to display LASTNAME only, or both FIRSTNAME and LASTNAME without Initials.


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell