Modify name display in Property Box
Beverly Smallwood
Is there a way to modify the name in the property box to display the Prefix and suffix? Colonel Joe /Blow/ Jr. |
|
Hi Bev, You cannot modify the contents of the standard Name box on the Main tab.
You can customise the Main tab to include another Full Name box to display whatever you like. However, it is easier to customise the Caption shown across the top of the Property Box. That has the advantage that it appears on every tab of the Property Box.
So click the Property Box cog Menu and choose Options… ( Alternatively, use Tools > Preferences > Property Box ) Click the Captions… button near the middle to open the Property Box Captions dialogue. There you can set the Caption of every type of Property Box. Select the Individual: expression at the top which probably says Individual: %INDI% [=RecordId()] Replace %INDI% with %INDI.NAME[1]:ADORNED_FULL% that will display what you requested. Then OK out and the Prefix Name Suffix will appear in the Caption.
|
|
Beverly Smallwood
Thank you Mike - that works great on charts too. On Sat, Dec 17, 2022 at 5:42 PM Mike Tate <post@...> wrote:
|
|
Miguel Centeno
Hi Mike,
Thanks for sharing this option. Is there a similar way to change names appearance in the Focus Window? |
|
Sorry, No.
From: family-historian@groups.io <family-historian@groups.io> On Behalf Of miguel.centeno@...
Sent: 18 December 2022 13:20 To: family-historian@groups.io Subject: Re: [family-historian] Modify name display in Property Box
Hi Mike, |
|
This discussion gave me an idea for showing both members of a marriage.
After a few attempts, I came up with %INDI.NAME[1]:ADORNED_FULL% with %INDI.~SPOU[1]>NAME[1]% Mark Trevithick from somewhere in the Florida Panhandle... |
|
Hi Mark, That is a nice idea but you may run into some cases that don’t work so well.
Firstly, I suggest you use %INDI.~SPOU[1]>NAME[1]:ADORNED_FULL% so both people display their full names.
Secondly, consider what happens if there is no spouse/partner or there are multiple spouses/partners.
With no spouse/partner, it will display such as ‘John SMITH with ’ So use the =CombineText(…) function to make “ with ” conditional on a 1st spouse/partner name existing: %INDI.NAME[1]:ADORNED_FULL%=CombineText(“ with ”,%INDI.~SPOU[1]>NAME[1]:ADORNED_FULL%)
To cater for multiple spouses/partners keep nesting =CombineText(…) functions: %INDI.NAME[1]:ADORNED_FULL%=CombineText(" with ",%INDI.~SPOU[1]>NAME[1]:ADORNED_FULL%, CombineText(" and ",%INDI.~SPOU[2]>NAME[1]:ADORNED_FULL%, CombineText(" and ",%INDI.~SPOU[3]>NAME[1]:ADORNED_FULL%))) There still might be problems if any spouse/partner has no Name recorded.
|
|
Hello Mike,
I was hoping that you would weight in on this and point out potential problems. Your code using conditional if, and nesting to capture multiple spouses is excellent. My Great-Grandfather married four times, but to my Great-Grandmother as his 1st and 3rd wives. He provided a great test, and though it did not capture four marriages, it did capture all three wives. Since I am somewhat familiar with his story, it is more than adequate and does a great job! Thanks a million! Mark Trevithick from somewhere in the Florida Panhandle... |
|