Follow our news:

Follow canonburysvcs on Twitter Follow Canonbury Services on Facebook Follow Canonbury Services' news by RSS Follow Canonbury Services' news by Atom Follow Canonbury Services' news by email


Showing a contact’s photo in GM+View

28/01/2013 – in Techniques

Some GoldMine clients (model and theatrical agencies for example) find it useful to show a picture of the primary contact on the GM+View tab.

The GM+View code for this is very simple:

(!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”)
(STYLE type=text/css) P, UL, OL, DL, DIR, MENU, PRE { margin: 0 auto;}(/STYLE)

(META name=GENERATOR content=”MSHTML 9.00.8112.16457″)(/HEAD)
(BODY leftMargin=1 rightMargin=1 topMargin=1)
(DIV)(IMG src=”k://photos//<<&contact>>.jpg” width=600) (/DIV)(/BODY)(/HTML)

<> tags in the above code have been replace by (), so as not to upset this blog’s own formatting. Just do a global replace to put them back as they should be.

The ‘width=600’ statement sets the picture size. Alter this to a size that is suitable, or you can remove it altogether.

The code is assuming that the photo bears the name of the contact. So, for instance, mine would be ‘rob widdicombe.jpg’. Just change the path to suit your own system, using double, rather than single, backslashes. Also, this only seems to work with mapped drives rather than UNC paths; I’m not sure why.