# New FamilyTreeView Addon (Thread 2)

**URL:** <https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014>\
**Category:** Development\
**Tags:** third-party-addon, familytreeview\
**Created:** [February 15, 2025, 4:22pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014 "2025-02-15T16:22:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 4:22pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/1 "2025-02-15T16:22:26Z")

</div>

> In consultation with @emyoulation, the [original thread](https://gramps.discourse.group/t/new-familytreeview-addon/6641) about FamilyTreeView (FTV) has been split at the v0.1.65 anouncement due to the thread’s length (\>330 comments). The discussion can be continued here.
> 
> The addon seems to work, but should not be considered stable yet. **Please back up your data before using this addon.**
> 
> You can find the source code of the FamilyTreeView addon on [Github](https://github.com/ztlxltl/FamilyTreeView). There, you can also find [installation instructions](https://github.com/ztlxltl/FamilyTreeView#Installation).
> 
> ![Screenshot of Gramps showing the FamilyTreeView](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/c/cb696e7007ed0c200fc7ab1604c2e6fdc7c064a0.png)

I haven’t been very active online the last few weeks, but I continued to work on the customizable boxes to add a new dimension of flexibility to FamilyTreeView. I finally implemented everything I had on my todo list for this feature and fixed all the bugs. (The user interface (config window) was by far the most difficult part for me.) The new feature is available in v0.1.65 of FamilyTreeView.

With this new feature, the user can change the width of the boxes and choose what information to display in the person and family boxes. There are 4 predefined definitions: Minimal, Compact, Regular, Detailed. You cannot change them, but you can make a copy of them and then modify (and rename) the copy. The predefined definitions may change in the future, as they should provide a useful default set of options to choose from. I’m open to suggestions for improving the predefined box definitions.  
Only advanced users should feel the need to create a custom definition, which is also possible with this new update. You could create different definitions for the boxes for different use cases, e.g. for working on the tree, for browsing the tree, or for printing the visualization of FTV.

> > **\[Expand me! \] Screenshots of the 4 predefined box definitions**
> >
> > Minimal:  
> > ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/3/369b6d8e1c149d590833b3c45c926987cc55b252.png)
> > 
> > Compact:
> > 
> > ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/e/ebc84be1952571c08649613eec6657845977a922.png)
> > 
> > Regular:
> > 
> > ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/a/a9f733d0cb08ad4a40bd3398f3615fcbead5f9f2.png)
> > 
> > Detailed (Yes, the image of the main family in _ **the example tree shows a person, not a family** _.):
> > 
> > ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/3/31a209557ec00fc65ed931f5ff4acb1da06289b0.png)

The following item types are available. They can be added to the boxes once or multiple times. The order of the items can be customized:

- Image (also for family boxes, or avatar if no image is available, flexibility requested by @SNoiraud [here](https://gramps.discourse.group/t/new-familytreeview-addon/6641/85) and @hamkg [here](https://gramps.discourse.group/t/new-familytreeview-addon/6641/205))
- Name (also for family boxes, i.e. the names of the spouses separated by a dash)
- Alternative name (person boxes only)
- Birth or fallback (person boxes only)
- Death or fallback (person boxes only)
- Birth and death or fallbacks (person boxes only, useful for “1855 - 1911”)
- Marriage or fallback (family boxes only)
- Divorce or fallback (family boxes only)
- Marriage and divorce or fallback (family boxes only)
- Any other event type (person and family boxes, see below for details)
- Relationship calculated based on the active person or home person (person boxes only) [added in v0.1.68]
- Attributes (person and family boxes)
- Gender (person boxes only)
- Relationship type (family boxes only)
- Gramps ID (person and family boxes)
- Tags (person and family boxes, see below for details)
- There is also a “gutter” item type that adds empty space of customizable size to visually separate other elements in the boxes.
- … (I’m open to your suggestions for item types you’re missing. Also, I plan to implement extensibility, similar to the badges, so everyone can code their own box item types.)

For images, you can set the size of the image.  
For all text based items, you can select individually how many lines should be reserved/used for this item. Example: Select more lines if you don’t want names to be abbreviated, if you want full place/descriptions to be displayed or you display an attribute which typically has a long text. (Note that you can also increase the width of the person box if a box gets too tall.) Or, select fewer lines if you want a compact visualization.

For all events (or fallbacks) you have the following options:

- The event type you want to display (only for "event"items: death, burrial, occupation, etc.)
- How to display the type of the event: name of the event type, a symbol, no indication of the event type, onyl display the event type (name or symbol) if there is no other information to be displayed.
- Which event to show if there are multiple (e.g. first, second or last occupation)
- Display the date of the event (full date or just the year)
- Display the place of the event (requested by @hamkg [here](https://gramps.discourse.group/t/new-familytreeview-addon/6641/209); There is also a new option to set the place format on the Apearence page (requested by @DaveSch [here](https://gramps.discourse.group/t/new-familytreeview-addon/6641/112)))
- Display the description of the event
- Display the tags of the event

There are different visualization methods for tags (of persons or families, but also for the tags of events):

- Display only the colors of the tags
  - You can optionally combine tags of the same color (with or without showing the number of tags with that color).

- Display only the name of the tag
- Display the name and color of the tag  
If the name of a tag is not displayed, the color is visualized by a colored circle. If the name is displayed, the background of the text has the tag’s color and the text color is black or white (depending on the contrast).

Besides the obvious enhancement by adding customizability, with this update FTV also measures the line height of the current font on the current screen. I’m quite optimistic that this is a more robust approach than the previous method of computing/guessing the line height based on the ppi. I hope this will fix the issues on high dpi/ppi screens (e.g. @Woody, @roptat). Hopefully this will also fix the font issues reported by @SNoiraud [here](https://gramps.discourse.group/t/new-familytreeview-addon/6641/85). I’m looking forward to feedback from those who had suboptimal display prior to this update.

Currently there are the following limitations and possible improvements to the new feature:

- The user interface for configuring the box contents is not yet perfect.
- All items are in one column, so you cannot put items next to each other, e.g. the image next to the other content. I have this on my list, but the config user interface for the current customizability is already quite complex (~1000 lines of code just for the UI, \>60% of new lines in this update).

Since this is a big update and adds a lot of flexibility, I can’t test all possibilities and use cases. Feel free to give me feedback and suggestions to further improve this feature.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [February 15, 2025, 5:10pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/2 "2025-02-15T17:10:07Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/d/d334a33400006786530c5de377c68f7f73bf45f8.png) **FamilyTreeView** (FTV) version 0.1.65 _(or newer)_ available by adding the @ztlxltl repository to your [Addon Manager](https://gramps-project.org/wiki/index.php/Gramps_Glossary#addon) projects:

**FamilyTreeView**  
`https://raw.githubusercontent.com/ztlxltl/FamilyTreeView/dist/gramps52`

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/8/8ca72a8147b573fda37443059889bc705c434e96.png)

The addon is in the **Beta testing** stage, not yet in general release. So you must adjust the default **Status** and **Audience** filters to see the listings.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/0/0ddef1b9906a39ea0939dfbcb9c2bc1774959cdc.png)

Visit the [FTV @ztlxltl GitHub Repository](https://github.com/ztlxltl/FamilyTreeView) to read the docs, view the source code, or report [Issues](https://github.com/ztlxltl/FamilyTreeView/issues)

For other curated “Projects” see the thread:

> [@Curated addon collections](https://gramps.discourse.group/t/curated-addon-collections/7170/5):
>
> ztlxltl experimental FamilyTreeView (FTV) chart view by @ztlxltl Project Name: FamilyTreeView (5.2) https://raw.githubusercontent.com/ztlxltl/FamilyTreeView/dist/gramps52 Project Name: FamilyTreeView (6.0) https://raw.githubusercontent.com/ztlxltl/FamilyTreeView/dist/gramps60 [https://github.com/ztlxltl/FamilyTreeView](https://github.com/ztlxltl/FamilyTreeView)

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 15, 2025, 6:47pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/3 "2025-02-15T18:47:21Z")

</div>

@ztlxltl there are a huge amount of different settings! its a great job!

Several things which I would like to add:

1. When I made upgrade, Ive received an exception. I did not save it, but it was stacktrace something about `_child()`… Sorry, I dont remember.
2. Detailed box has some artefacts like “text” word and brackets “[” “]”.  
 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/5/560ed110febf500e09b32e621884c22f23890c47.png)  
PS: looks like I understand what “text” means.  
Can I suggest one additional setting: disable/enable words “calculated/evaluated/about”? But not “before” and “after”.

Thanks again!

---

<div class="post-metadata">

**Author:** ![hamkg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/hamkg/32/5784_2.png) [@hamkg](https://gramps.discourse.group/u/hamkg)\
**Post date:** [February 15, 2025, 7:05pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/4 "2025-02-15T19:05:46Z")

</div>

The options for defining the boxes are marvellous and a greatly appreciated addition! Thanks!  
The “text” thing mentioned by @Urchello: I noticed the same, if no place for an event is recorded, I get e.g for a birth.

- 1825-11-03 text  
in the box (the intended asterisk shows up as a bullet here for some reason). Don’t know if “text” can be eliminated somehow?

I’ll play around with the possibilites and learn about them.  
Again, thanks!

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 7:09pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/5 "2025-02-15T19:09:50Z")

</div>

@Urchello Thanks for your feedback!

> [@Urchello](#):
>
> When I made upgrade, Ive received an exception. I did not save it, but it was stacktrace something about `_child()`… Sorry, I dont remember.

If you haven’t restarted Gramps since the error occurred, you may be able to find the error in the [log](https://www.gramps-project.org/wiki/index.php/Logging_system)

> [@Urchello](#):
>
> Detailed box has some artefacts like “text” word

> [@Urchello](#):
>
> PS: looks like I understand what “text” means.

That sounds strange. I’ll look into it.

> [@Urchello](#):
>
> brackets “[” “]”

Can you upload a screenshot of where they appear?

> [@Urchello](#):
>
> Can I suggest one additional setting: disable/enable words “calculated/evaluated/about”?

I think you have suggested something similar before. Unfortunately, I’m using Gramps’ language-dependent date formatter. I’m not sure if I can easily change the way the date is displayed. I have this on my list but it is not a high priority.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 7:11pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/6 "2025-02-15T19:11:33Z")

</div>

> [@hamkg](#):
>
> The options for defining the boxes are marvellous and a greatly appreciated addition! Thanks!

@hamkg  
Thanks for the positive feedback.

> [@hamkg](#):
>
> if no place for an event is recorded

Thanks for the hint. I’m sure I can fix this soon.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 7:18pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/7 "2025-02-15T19:18:24Z")

</div>

> [@Urchello](#):
>
> Detailed box has some artefacts like “text” word

> [@New FamilyTreeView Addon](https://gramps.discourse.group/t/new-familytreeview-addon/6641/343):
>
> if no place for an event is recorded

@Urchello @hamkg  
I just pushed a fix. Can you test with v0.1.66?

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 15, 2025, 7:40pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/8 "2025-02-15T19:40:27Z")

</div>

> [@ztlxltl](#):
>
> Can you upload a screenshot of where they appear?

its before death date

 ![Screenshot from 2025-02-15 21-39-14](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/0/07484b3dadbba969cf8d336c84a91b452d2e8543.png)

The Death event inside the Person card:  
 ![Screenshot from 2025-02-15 21-38-58](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/8/81c209e3ba2dc2c307aa9af2d64cfe6148b605bf.png)

---

<div class="post-metadata">

**Author:** ![Brinycoolie](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@Brinycoolie](https://gramps.discourse.group/u/Brinycoolie)\
**Post date:** [February 15, 2025, 7:41pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/9 "2025-02-15T19:41:21Z")

</div>

Looks really good but I can’t seem to get the Historical Context to show up as a selectable option in the Events timeline drop-down of the panel even though the tab for them is appearing in the configuration options now.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 7:45pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/10 "2025-02-15T19:45:11Z")

</div>

> [@Urchello](#):
>
> its before death date

This is the simple symbol given by Gramps for burial (it resembles a coffin). 😉

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 15, 2025, 7:45pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/11 "2025-02-15T19:45:21Z")

</div>

> [@Urchello](#):
>
> brackets “[” “]”.

The same I see also before Burial date

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 15, 2025, 7:49pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/12 "2025-02-15T19:49:50Z")

</div>

> [@ztlxltl](#):
>
> I think you have suggested something similar before.

yes, I suggested change words to characters like a coffin )))  
But optional hiding them is also good solution. They use a lot of space, thats why only Detailed Box is acceptable for me.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 7:52pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/13 "2025-02-15T19:52:11Z")

</div>

> [@Brinycoolie](#):
>
> Historical Context to show up as a selectable option in the Events timeline drop-down of the panel

The Historical Context is not yet integrated into FTV’s timeline (and it’s not a high priority at the moment).

> [@Brinycoolie](#):
>
> even though the tab for them is appearing in the configuration options now.

Gramps adds all Gramplet config pages to the config window of the current view. Most likely that’s why you see it there. This page/tab is not created or added by the FamilyTreeView addon.

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 7:55pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/14 "2025-02-15T19:55:07Z")

</div>

> [@Urchello](#):
>
> thats why only Detailed Box is acceptable for me.

You can also copy/duplicate one of the other predefined box definitions and add more lines to the events or make the boxes wider if the other info (like alternative name etc.) is not interesting for you in your usual workflow.

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 15, 2025, 7:57pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/15 "2025-02-15T19:57:22Z")

</div>

> [@ztlxltl](#):
>
> Unfortunately, I’m using Gramps’ language-dependent date formatter.

Looks like the better way is add characters for “about”,“after”,“before”,“calculated”,“estimated”, … in Gramps core settings. Then date formatter will use them. By default these words will be replaced to the same: “about” → “about” and so on. But anybody can change default word to any custom character. What do you think?

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 15, 2025, 8:14pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/16 "2025-02-15T20:14:23Z")

</div>

@ztlxltl If they make sense not only for me:

1. I use (I think not only me) `Caste` person attributes to save there `Caste` like:  
a Cossack, a peasant, a nobleman, a prince. I thought about ways how is it possible to show caste-tree to see which branches are Cossacks, peasants and so on… What about adding a setting when box changes color or image according to specified Caste? So, all Cossacks Boxes will have photo like this:  
 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/5/5b8a2ea3a97ffbe9d71f2a48f7c51d71cc97c322.png)  
peasants will show another photo…  
Another Gramps users use another attributes. For example children count. It is a good way to show different images for religion attribute, or different children amounts.

It will look like this:

 ![Screenshot from 2025-02-15 22-33-07](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/2/28514970cc18ed823dee7985e31eff4c9b4e93f5.png)

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [February 15, 2025, 8:18pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/17 "2025-02-15T20:18:09Z")

</div>

So, functionally the settings will look like below:  
Checkbox on/off to overwrite people images with custom below:  
Choose Attribute name … Choose Attribute value … Choose image path …  
Choose Attribute name … Choose Attribute value … Choose image path …  
Choose Attribute name … Choose Attribute value … Choose image path …  
Choose Attribute name … Choose Attribute value … Choose image path …  
Add more button

---

<div class="post-metadata">

**Author:** ![ztlxltl](https://avatars.discourse-cdn.com/v4/letter/z/96bed5/32.png) [@ztlxltl](https://gramps.discourse.group/u/ztlxltl)\
**Post date:** [February 15, 2025, 9:10pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/18 "2025-02-15T21:10:01Z")

</div>

> [@Urchello](#):
>
> What about adding a setting when box changes color or image according to specified Caste?

@Urchello  
I think this is a very specific/niche enhancement request. I’m not sure I’m even going to implement something like this.

If it is really something many users use, the better approach would be to maybe store this information (the image) in the database somehow. Some ideas (all of which are outside the scope of FTV, but maybe a another developer would like to implement one of them if a discussion (e.g. in a different forum thread) has reached a consensus):

- Add types and/or tags to media references. There are attributes that can be used, but I feel that this is not ideal.
- Add media references to attributes and/or tags.

I’m not sure these ideas are perfect, maybe there are better options that will come up in a dedicated discussion thread.

---

<div class="post-metadata">

**Author:** ![stuck](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@stuck](https://gramps.discourse.group/u/stuck)\
**Post date:** [February 15, 2025, 10:40pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/19 "2025-02-15T22:40:46Z")

</div>

> [@ztlxltl](#):
>
> implemented everything I had on my todo list for this feature and fixed all the bugs

I don’t wish to sound ungrateful but implementing a new SVG export icon in the Windows version ([New FamilyTreeView Addon - #338 by ztlxltl](https://gramps.discourse.group/t/new-familytreeview-addon/6641/338)) doesn’t seem to have been done in v0.1.65. Can that not be done after all?

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [February 15, 2025, 11:05pm UTC](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014/20 "2025-02-15T23:05:09Z")

</div>

> [@stuck](#):
>
> new SVG export icon

The “Export the tree as SVG” toolbar icon has a NotFound/caution placeholder on Fedora 37 too.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/c/cde2ac8783129a709968cbefde74eaef804a7fc4.png)

[Next page](https://gramps.discourse.group/t/new-familytreeview-addon-thread-2/7014.md?page=2)
