* A way to hide certain Facts in an Individuals box in a diagram?

Questions about creating, customising and using diagrams and charts
Post Reply
avatar
JohnB47
Diamond
Posts: 85
Joined: 31 May 2024 19:42
Family Historian: V7

A way to hide certain Facts in an Individuals box in a diagram?

Post by JohnB47 »

I have a particular individual, who has only one Fact (Birth) and I want to keep that Fact in the record but have it not shown in that persons box in Diagrams. Is that possible?

I've tried making the Fact private but that doesn't work. Also I've looked at Help and found this under Fact Flags, which I can replicate but not in my Custom text scheme (I can't find the "untick Include Private Facts" option):

"Hiding private facts in diagrams is less straightforward. If you are using the All Events and Attributes text scheme, in your diagram, for example, you need to edit the text (in the Text tab of Diagram Options), and then edit the <all events & attributes> item, and untick Include Private Facts."

How do I hide private facts, in a Diagram, if I'm using a custom text scheme: Birth, Marr, Death, Nickname (Custom)?

Thanks. Edit: see attached screenshot - where do I go from here?
Attachments
Hide Private Facts in Diagrams.jpg
Hide Private Facts in Diagrams.jpg (138.77 KiB) Viewed 632 times
User avatar
tatewise
Megastar
Posts: 29060
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: A way to hide certain Facts in an Individuals box in a diagram?

Post by tatewise »

Edit the Birth item and use the Template:
=TextIf( Exists( %INDI.BIRT._FLGS.__PRIVATE% ), "", FactText( %INDI.BIRT%, "CT", "E_Born: _ in _" ) )
where
=TextIf( ... ) is the conventional way of conditionally including/excluding text
Exists( ... ) is the way to set the condition by testing the Fact Private Flag existence
%INDI.BIRT._FLGS.__PRIVATE% is the Data Reference for the Fact Private Flag
FactText( ... ) is the original Birth item display template
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
avatar
JohnB47
Diamond
Posts: 85
Joined: 31 May 2024 19:42
Family Historian: V7

Re: A way to hide certain Facts in an Individuals box in a diagram?

Post by JohnB47 »

Thank you Mike.

That has worked perfectly. Thanks also for explaining the code.
Post Reply