Novell Home

Displaying First Name Only in eGuide

Novell Cool Solutions: Tip
By Andrey Karyagin

Digg This - Slashdot This

Posted: 10 Jan 2007
 

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,'
'), '
' )"/>

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.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell