In a hybrid environment, you can enable the Name Finder Show
user photo option to use photos in the IBM® Domino® directory.
Before you do, add photo fields to the directory design and then add
photo image files to the directory.
About this task
Make the changes described in this procedure to a synchronized
directory that replicates to the service.Procedure
- Make a backup copy of your pubnames.ntf file.
- From IBM Domino Designer,
open pubnames.ntf.
- Click .
- Double-click the $PersonInheritableSchema subform.
- Create a field called Photo:
- In the Basics tab, click .
- In the Name field of the properties
box, type Photo. In the Type field,
select RichTextLite.
- Click the second tab of the properties box and complete
the following fields:
- In the Only allow field, select Thumbnail.
- Select Resize Thumbnail Image, in pixels.
- In the Width field, select 85.
- In the Height field, select 74.
- In the Image attachment name field, type ContactPhoto.
- Click the sixth tab of the properties box. Clear the
following Hide paragraph from fields to ensure
they are not selected so that the field is visible:
- Notes R4.6 or later
- Web browsers
- Mobile
- Select the new Photo field. In
the Objects panel, click the onChange event
and add the following code to it:
Sub Onchange(Source As Field)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Set uidoc = ws.CurrentDocument
Set doc = uidoc.Document
Call doc.ReplaceItemValue("PhotoModified", Now())
End Sub
- In the $PersonInheritableSchema subform, create a hidden field called
PhotoModified:
- In the Basics tab, click .
- In the Name field of the properties
box, type PhotoModified. In the Type field,
select Date/Time.
- Click the second tab of the properties box and complete
the following fields:
- Select DisplayTime.
- In the Show field, select Hours
and minutes.
- In the Time zone field, select Adjust
time to local zone.
- Save and close the subform.
- Replace the design of your directory database with the
new version of the pubnames.ntf template.
- To add a photo to a Person document, open the Person document
in the directory, click the photo field that you created, select the
image file, and save the document.
What to do next
Enable the Name Finder option Show user photos and do not select
Use IBM Connections Cloud photos.