|
|
|
|
|
|
|
|
|
|
Adding templates to the automated signature generator (continued)
What I suggest you do is create a text signature example, or copy one, and paste into the template. Then at each place where you need to replace a value; name, phone number, and so on, delete any value you have, place the cursor and hit "Insert Placeholder".
Figure C shows the list of placeholder fields available. You just select one, and hit OK.
FIGURE C
Pick your placeholders. Click picture for a larger image.
Do that for all the fields you want to have replaceable values, and save the template. Easy, huh? Actually, making nice-looking signature blocks isn't always quite as easy as you might think.
Fun with HTML So what about HTML templates? When you're working with HTML, there's much more to play with, and much more to be creative with. The way they work is pretty much the same as for text, but for the fact that you add replaceable values into HTML, and click the button to see the rendering of the HTML. As before, with an ND6 or above client, it's right in front of you, or with a Notes 5 client, it'll show up in a separate browser window.
Ok, it's full of the placeholders rather than real text, but it will give a good flavour of how the final signature block will appear.
One little issue. I've found that if the HTML doesn't contain a table, it often doesn't render at all. Which isn't a lot of good. To get round it, the easiest thing is to put a table at the top, like this:
<hr><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0></table>
<font face = "Arial" size = 2 color = '#0000ff'>#%username%#
<font face = "Arial" size = 2 color = '#000000'>#%title%#
#%company%#   <a href = "#%MapURL%#">Map</a>
<font face = "Arial" size = 1 color = '#000000'>p: #%Phone%# f: #%fax%#
m: #%cellPhone%#
e: <a href = "mailto:#%email%#">#%email%#</a>
w: <a href = "mailto:#%http%#">#%http%#</a>
</font>
<font face = "Arial" size = 1 color = '#ff00ff'>
#%strapline%#
|
Strange, huh? I guess it's an artifact of the way Notes renders HTML. Bear in mind that we have an HTML fragment, and not a complete page here.
Next week, we'll get into the code that drives this application. I can't wait!
Mick Moignard has been working and traveling with Lotus Notes since Release 2.0 in 1991. Mick is a DominoPower Senior Technical Editor and a Principal CLP with Unipart Expert Practices, a Lotus Advanced Partner in the UK. If you want to discuss anything to do with this article, or indeed anything else to do with Notes and Domino, contact Mick at Mick_Moignard@unipart.co.uk. Unipart Expert Practices will also happily discuss any opportunities you may have with any Notes and Domino application development or infrastructure projects you need help with. Unipart Expert Practices can be found at http://www.unipartep.com.
[ Prev ]
|
|
|
|
|
|
-- Advertisement --
AUTOMATE LOTUS NOTES USER ID MANAGEMENT
ID Manager 4.5 from HELP Software provides a new level of automaton for managing Lotus Notes IDs. ID Manager lets Lotus Notes administrators get out of the business of creating and managing user IDs. Use our ROI calculator to see how quickly ID Manager will pay for itself.
Learn more about HELP Software products |
-- Advertisement --
Webinar: Agents Gone Wild! with Rocky Oliver & John Kingsley
We can all appreciate what agents can do for us when they're on our team, but how do you identify agents that aren't doing what they're supposed to be doing?
In this webinar we'll discuss tips to help you manage your agents more effectively, including ways to identify all of your agents, to give them the makeover they need, locate agents with errors at run time, and more.
View this webinar! |
|
|
|
|
|
|
|
|