GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Add in the name index list the name of the father, next to the name of the individual


https://support.genopro.com/Topic39217.aspx
Print Topic | Close Window

By josephab10 - Tuesday, January 22, 2019
Dear,

I would like to display the individuals in the Index list as per the below:

"Individual First Name" "Father first name" "Family Name" "Date of birth"

The reason is because in my family tree, there are lot of individuals sharing the same first and family names, with no year of birth. The only way to distinguish them will be to insert the father's name.
I tried to work on the skin templates but found them too complication to modify.
Can you indicate the name and location of the skin file I need to modify in order to insert the father's first name for each individual? I also need to know what to add and where (line number and string)

I will be really grateful if I can get your support.

Ideally, maybe you can add my suggestion to the default skin, or give the user the possibility to customize the display of the index list: add/remove fields while publishing the tree.

Regards,
Joseph
By appleshaw - Wednesday, January 23, 2019
An alternative (simpler) approach is to put the father's name in the Second Last Name. This will appear in the Display name in brackets. Once a name is entered it can be found in the drop down list for other entries
By NiKo - Wednesday, January 23, 2019
Or add "of <Father's First Name>" in the Middle Name field.

If they have a Middle Name, enter it as "<Middle Name> of <Father's First Name>", or "<Middle Name>, of <Father's First Name>,"
By josephab10 - Wednesday, January 23, 2019
Thank you for your reply.
It worked perfectly. But I felt it is a workaround.



Shouldn't we have another way that allows us to choose the fields we would like to display in the Index list?
By genome - Wednesday, January 23, 2019
The Narrative Report does already have an option to select another field to be displayed with the name in the index.  See Name tab of Configuration Parameters dialogue.  It defaults to the 'Alternative Names' field i.e. Name.Alternative
 
However currently there is a problem if you try and use say Father.Name.First as the tag because here Father is a link to another Individual record.

But I have now managed to tweak the script to allow this. The three attached files fix this and should be downloaded to the Narrative Common/Code folder of your Report Skins folder, replacing existing files.

I have also allowed for { } and [ ] brackets to be included in the phrase template via parameters 3, 4, 5 & 6 respectively and so for example you can set the phrase to 
{0}[ {!5}of {1}{!6}] and the 'alternative' name to Father.Name.First to produce index entries such as 

Harry Potter [of James]
By josephab10 - Thursday, January 24, 2019
Thank you Legendary Master Smile
the solution perfectly works.
Regards