Jump to content
TNG Community
Jan Suhr

Put person title after name

Recommended Posts

Jan Suhr

Most Genealogy programs have a field for Title for the person, like "Priest", "Baroness", "Earl" and so on.

This Title field has the Gedcom tag NPFX (NamePrefix) and is in TNG the Prefix for names.

I wanted to have that after the persons name and there is no settings for this in TNG.

I modified just line 49 in globallib.php to get what I wanted

//Original line changed
//$namestr = trim("$title$firstnames$lastnames");
//to this
$namestr = trim("$firstnames$lastnames");
if($title){
	//This remove a trailing space in $title
	$title = rtrim($title);
	$namestr .= ", $title";
}

I also changed the field name to "Title" instead of "Prefix"

Share this post


Link to post
Share on other sites
manofmull
1 hour ago, Jan Suhr said:

I wanted to have that after the persons name and there is no settings for this in TNG.

I just use the Suffix field to get the title after the name as in the example below

BEATON Alexander Hector, Dr.
 

 

Share this post


Link to post
Share on other sites
Jan Suhr

Yes that is the simple way to do the same thing, but if you have thirteen thousand people in your Desktop Genealogy program where all of those peoples Titles are exported as Prefixes in the Gedcom my solution is better. :-D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×