|
FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.1
Last Login: Thursday, June 2, 2022
Posts: 108,
Visits: 1,280
|
My family tree is historical in nature, and the occupations my ancestors undertook sometimes need some extra explanation. I know I could use the Comments field to give a description of what a Colliery Banksman did, but the resulting report just looks a bit too clunky.
What I'd like to see is either a hyperlink to a page listing all the occupations with a description of what that entailed, or MORE PREFERABLY, I'd like to see a tooltip popup on mouseover. Here is a mockup showing what I mean :

Now I thought the easiest way to achieve this was to insert the html code into her Job Title in the .gno file like so :

Sadly that just gets interpreted literally :

So I've had a little delve into the code, hoping there'd be a simple change I could make in the WriteHtmlOccupations subroutine in the individual.htm. I didn't spot anything I could obviously alter, so I'm a bit lost to tell the truth.
Looking in lang.vbs I saw this comment
' This string contains HTML tags, so it must be used with Report.Write() or with the WritePhrase's argument "{0h}".
I'm hoping this is a pointer to my solution - can you explain how I alter the following bit of code to use the {0h} argument (and that's if I've not got the wrong end of the wrong stick)
Report.WritePhrase StrDicOrTag("PhOccupationWorksAs", CustomTag(o, "NarrativeStyle")), _ StrDateSpan(o.DateStart, Util.IfElse(o.Termination.ID = "", o.DateEnd, nothing)), _ o.Duration, _ strRelative, _ StrFormatText(o, StrParseText(o.Session("Title"))), _ o.WorkType, o.Industry, _ StrFormatText(o, StrParseText(o.Company)), _ StrHtmlHyperlink(o. Place), _ o.Termination.ID = "StillWorking", _ strName, _ Dic.Peek("PrefixTitle_" & CustomTag(o, "Title.Prefix")), _ Dic.Peek("PrefixCompany_" & CustomTag(o, "Company.Prefix"))
What follows is an aside, and a thankyou:
I recently posted up my family tree, with a custom skin, which has a few cute features I've been able to splice in, based on the excellent help I've had here in the forums over the last year or two.
http://familytrees.genopro.com/harrycaper/
Mainly these have been minor tweaks to the Table of Contents - removing the A-Z from the individual's toc, grouping the Pictures TOC by picture type (individual pictures, place pictures, etc) and other such cosmetic stuff.
The bit I'm most chuffed with is what I've been able to do with the Whereabouts section of the Individual's page, tweaking the code to show the photo link for places with pictures, and generating a map page displaying all the geocoded locations for that person :

So a big thankyou for your past assistance
|