Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs







Recent posts

Mon 21 Jun 2021

Custom Domino Extensions presentation



Thu 10 Jun 2021

Notes 12 without all the blue



Wed 5 May 2021

Pull public data into Notes on the fly


January, 2022
SMTWTFS
      01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Search the weblog





























Genii Weblog

Automatic hyperlinking

Tue 24 May 2005, 03:28 PM



by Ben Langhinrichs
A friend asked me how I handle hyperlinks to common destinations, as I frequently answer questions in e-mails or comment on my blog about our products, and they always take the form of @Midas Formulas or CoexEdit.  He wanted to know if I keep copies handy, or have add them manually, or what.

The answer, of course, is that I use our Midas Rich Text LSX to do it for me.  The basic code is below (the whole agent is only 25 lines with comments):

' *** Connect to BlogBodyRT field and perform LinkMatching  ****
Call rtitem.ConnectBackend(doc.Handle, "BlogBodyRT", True)
 
rtitem.URLFont = "Blue Underline"
If mode Then uidoc.Save
uidoc.Close
Call rtitem.Everything.LinkMatching("", "GeniiKeywords.nsf", "Keyword View", "Term", "Link", |Target="_new"|)
rtitem.Save
Set uidoc = ws.EditDocument(mode, doc)

So, do you have a common set of keywords you would be able to automatically hyperlink?

Copyright 2005 Genii Software Ltd.

What has been said:

No documents found