Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
Adding templates to the automated signature generator
By Mick Moignard

This is the second part in our "Building an automated signature generator application" series. If you haven't read Part I, all about the user experience, you'll find a link at the end of this article. In this week's installment, we'll learn how to add templates to the system.

What the Administrator can do
The Administrator's job is to maintain the templates and the site documents. This isn't a Notes administrator job, but more a departmental admin job, though, as you will see, the signature templates do require some thought, particularly the HTML ones.

There's no reason why this cannot be done by anyone with the relevant skills and knowledge. As we'll see later, to make someone an Administrator, all you need to do is make them an Editor in the ACL.

Site documents are easy; standard Notes forms that you fill in. Figure A shows one open in edit mode.

FIGURE A


As an admin, you can go ahead and define the various sites of your organization. Roll over picture for a larger image.

You can see that there are a couple of title fields, and then there are fields to describe a couple of http links, each with a main URL and a secondary one, and an ALT tag.

The idea is that in the signature itself you can display a logo, which is sourced from the logo URL, and when clicked it goes to the main URL, and also has an ALT tag for completeness. There are actually two sets of these, and you can see how they are filled in for my company (Unipart Group) and my business unit (UALS). The template I use for my current signature doesn't actually use them.

You should also note that there are site address fields, and also map locator fields, postcode/zip code, country, town and street. These can be used ultimately as plug-in values to a map locator URL, if that makes sense for you.

Note that all of this is optional. You can have as few or as many sites as you need, and you will enter what is relevant to each one. All that they are used for is to populate fields in the signature block when the user clicks the "Click to get your site details" link at the top of the screen. Saves a user from typing your company URLs and getting them wrong.

Then there are templates. We'll look at a text one first, because it's easier to explain the basic principles. Figure B shows a text template in edit mode. You give each template a descriptive name, and then get creative with the block itself.

FIGURE B


Now, you can start creating dynamic signature templates. Roll over picture for a larger image.

The one you can see shows the fixed text in black, and placeholders for replaceable items in red. This is done using a rich text field, so that I can display the placeholders in a different colour to the static text, but don't get too excited here. Notes itself uses a plain text field to store the text signature, so there is little point in getting fancy. In fact, no point at all, because in this application, we also render the text signatures in plain text.


1  ·  2  ·  Next »
Other articles you might like
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login