Search DominoPower's 10,675 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 (47 articles)
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
   Integrating a Notes Connector database with Google Enterprise Search
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
What to look for in a Domino-based document management solution
Understanding Domino.doc end-of-life options
When the debugger won't debug hidden code that isn't hidden
What to do if the LotusScript debugger won't single-step over code
Top 10 ways to launch and build a Lotus consulting practice (with a little help from the Beatles)
Troubleshooting an OpenSuse Notes install
Incident report: denial of service attack against ConnectedPhotographer.com
Latest Lotus Headlines
SnTT - Enabling ALL the bells and whistles!
Tivoli Data protection causes Domino to crash
Fun when running DB2 CLP scripts
Introducing Flippr, the easy way to admin Quickr
DXL and fake security
Using search forms in IBM Workplace Collaborative Learning 2.7
Schmidt, Freed, and Gering on the OVF Toolkit
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Eight steps to successful and reliable home backups
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Can Outlook run when it's not running (and other mysteries)?
-- 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 --

Want The Top Lotus Experts By Your Side Without Paying Hefty Consulting Fees? Look No Further.
Like having a team of consultants by your side -- ones who have all the answers and never make mistakes -- THE VIEW gives you immediate access to field-tested instruction, guidance, and best practices from the brightest Lotus professionals around.

Join your peers who realize their Lotus technology is too important to let people from blogs and forums tell them how they should implement it, run it, and use it. THE VIEW is where only the world's top Lotus experts provide validated support to you on a weekly basis to ensure you work more efficiently, get more out of your Lotus technology, and stay clear of costly mistakes.

Check out the new instruction, tips, and best practices added to THE VIEW this week.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2009, ZATZ Publishing. All rights reserved worldwide.
Editor's Login