Saturday, December 18, 2010

Portal Greeting on Tools 8.50

I’ve posted before about using the Portal Greeting / PIA Welcome message to display something useful here.  I’ve recently come to implement this on a client and discovered that the method I suggested no longer works for Tools 8.50.
Pleasingly, it’s now actually slightly easier to achieve (and will appear on all pages, not just the Home Page).
Open up App Package PT_BRANDING, the Class BrandingBase and search for the string ‘add &addjs’.  Immediately preceding that line, add the following line of code:
&greeting = "User: " | %UserId | " on Database: " | %DbName;
(Plus some comments identifying the customisation etc.)
This will do the trick, but the end result looks a bit big and blocky.  It’s a piece of cake to alter the greeting style to achieve a much better looking result.
Open the PSHOMEPAGE Freeform Style Sheet, locate the greeting style class and replace it with this:
.greeting {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
margin: 0 0 0 70px;
line-height: 24pt;
}

The end result will look something like this (I’ve also added bold tags around the UserID and Database for clarity):

1 comment: