Author Topic: Nickname display in Dynamic tree  (Read 10731 times)

0 Members and 12 Guests are viewing this topic.

Offline KJB

  • VIP
  • Jr. Member
  • *
  • Posts: 15
    • View Profile
Nickname display in Dynamic tree
« on: April 03, 2026, 15:47:39 »
In my genealogy, many people have a nickname (Dutch: roepnaam) which is often an abbreviation or other derivative of one of the official given names, usually the first.
In my previous software, I had entered the nickname as part of the official name, in brackets, like Marinus Albert (Rien) VOGEL.
Now (after importing in Ancestris) I am deleting those parts in brackets since they are not part of the official name, and entering them instead as a NICK.
That works, but the NICK does not show up in the default view of the Dynamic tree. I have looked into changing that, but creating a new Blueprint seems challenging to me, with what looks like html coding.
Ideally I would (again) have the NICK shown in brackets in the box of that individual immediately after the given names. (But if this is too complicated, it might also be an additional line below the given names.)
How to accomplish this?
« Last Edit: April 03, 2026, 17:34:52 by KJB »

Offline UncleRemus

  • VIP
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Nickname display in Dynamic tree
« Reply #1 on: April 03, 2026, 19:42:34 »
Creating a new blueprint may be a challenge, but is worth it in my opinion. You can easily make a copy of any blueprint and change that without risk of messing things up permanently. Just right click on an individual in the dynamic tree, choose "change display of individuals". Now select the blueprint you want to change and click on "new" on the bottom left. This will create a copy that you can freely edit.

The following code will do what you want:
<prop path=INDI:NAME?1:NICK format="{($e}"><prop path=INDI:NAME?1:NICK><prop path=INDI:NAME?1:NICK format="{)$e}">

The place to insert this line will depend on the blueprint. Some trial and error maybe needed.

Offline FredericL

  • VIP
  • Supernatural Member
  • *
  • Posts: 1 130
    • View Profile
    • Généalogie personnelle et logiciel gratuit Ancestris
Re: Nickname display in Dynamic tree
« Reply #2 on: April 03, 2026, 20:58:37 »
<prop path=INDI:NAME?1:NICK format="{($e}"><prop path=INDI:NAME?1:NICK><prop path=INDI:NAME?1:NICK format="{)$e}">

Brilliant ! Thanks. I have just added this one in the documentation. https://docs.ancestris.org/books/user-guide/page/blueprints#bkmrk-cas-des-noms-%28propri
Frederic

Offline KJB

  • VIP
  • Jr. Member
  • *
  • Posts: 15
    • View Profile
Re: Nickname display in Dynamic tree
« Reply #3 on: April 03, 2026, 21:02:29 »
Thank you for chiming in. I was using the Default style. From that I created a New style, and called it Nick. I inserted your line at the place that seemed right to me, and bingo! The nickname, if entered for an individual, appears in brackets right after the given names. Exactly how I want it.
However, all the boxes for individuals in the Dynamic tree have less height now, and hence they display fewer lines - which, to be clear, is not what I want. I wouldn't know how that changed behaviour is possible, because I didn't change anything other than inserting "your" line and it contains nothing about dimensions. In fact, I don't see anything about height in the code of Nick, only about width.

Offline FredericL

  • VIP
  • Supernatural Member
  • *
  • Posts: 1 130
    • View Profile
    • Généalogie personnelle et logiciel gratuit Ancestris
Re: Nickname display in Dynamic tree
« Reply #4 on: April 03, 2026, 21:05:53 »
Use the Dynamic Tree settings (top right button called "Configure View" (tooltip).

Go to the "Tuning" tab and change the box width/height.

Alternatively, change in that same panel the Box content zoom behaviour.

Regards,
Frederic

Offline KJB

  • VIP
  • Jr. Member
  • *
  • Posts: 15
    • View Profile
Re: Nickname display in Dynamic tree
« Reply #5 on: April 03, 2026, 21:38:16 »
Thank you, I've changed the height to my liking.
I don't understand why the height was changed if I just copied Default to Nick by clicking New. Maybe any New box has those smaller dimensions? But then again, in a style called Default the dimensions should be, well, default. Anyway, since I now know how to change it through Tuning, that's a bit of a moot point now.