* Record Title Format in Source Definition Template

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
User avatar
David2416
Superstar
Posts: 378
Joined: 12 Nov 2017 16:37
Family Historian: V7
Location: Suffolk UK

Record Title Format in Source Definition Template

Post by David2416 » 28 Dec 2020 21:36

I would like my source titles to follow my standard format:
Untitled.jpg
I can only find {date} and {place} in the template dialog which won't reproduce my preferred layout, which I can achieve using AS.

Is there a method I have missed in FH7 - other than manual amendment?

avatar
webbkj
Newbie
Posts: 1
Joined: 30 Dec 2020 12:54
Family Historian: V7

Re: Record Title Format in Source Definition Template

Post by webbkj » 30 Dec 2020 13:07

Yes there is.

On the Tools menu, select Source Template Definitions. Then select the Source Template you want to edit and press the View/Edit Button. You can then amend the Record Title Format to suit your needs, using the <<Add button to copy any fields in you want to use. Press Save when you are done

In the list you will probably see the word 'mod' in the Used column. This says that the Template Definition here and in the project are now different.

So, you need to apply that change to the Template in your project. To do this press the Compare/Sync button. Select the field(s) with a red x next to them and then press View/Sync and either sync left or right depending on which one has the definition that you want.

However, there is still another step you need to follow. The titles on your existing sources won't be updated to reflect your changes until you edit them. So you need to go into each one and amend it (then amend it back if you want) for the change to show. That bit is a real pain and if anyone knows a way of doing this en masse I'd also be grateful to know

Kevin
Last edited by webbkj on 30 Dec 2020 13:08, edited 1 time in total.

User avatar
David2416
Superstar
Posts: 378
Joined: 12 Nov 2017 16:37
Family Historian: V7
Location: Suffolk UK

Re: Record Title Format in Source Definition Template

Post by David2416 » 31 Dec 2020 15:18

Thank you Kevin for your reply.

What I am looking for is the ability to construct the Source title in the format I want -

in AS one can use the following {YEAR}{DATE.MONTH.NUM2}{DATE.DAY2} Census @ {PLACE} {PLACE.SHORT}: {REF} - {KEYPERSON.GN} {KEYPERSON.SN.CAPS} this gets near to what I want.

The Source Template editing process does not provide, so far as I can see, the ability to split {Date} or {Location} which means I cannot set up the template to do what I want which I can almost do with AS

User avatar
David2416
Superstar
Posts: 378
Joined: 12 Nov 2017 16:37
Family Historian: V7
Location: Suffolk UK

Re: Record Title Format in Source Definition Template

Post by David2416 » 31 Dec 2020 16:54

I have just realised I can create new field definitions so to get a source title starting with yyyymmdd I need to create
three new fields
{year} as a date
{month} as an enum (cannot treat as date as will give errors and will get 0001 if entering 01)
{day} as an enum (ditto)

then use the expression <{year}{month}{day}> which will give me a date eg 20210101 - the angle brackets supress blanks between fields.

Is this documented anywhere?

Post Reply