* Deleted Custom Source 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
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Deleted Custom Source Template

Post by Chrisv » 29 Apr 2022 23:38

I did a really Dumb thing! And I don't even remember doing it, but the evidence is there.
I had two custom Source Templates that were very similar to each other. I brought both into my Project and started to use one of them. Then I did the Dumb thing. I deleting the wrong template in my Source Template Definitions editor. So, at this point, I have both templates in my Project and the Wrong template in my Source Template Definitions editor. I also did not make any Export files for any of them. Double Dumb!!
Is there a way to get the correct template from my Project into my Source Template Definitions editor?

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Deleted Custom Source Template

Post by Mark1834 » 30 Apr 2022 07:59

Chris,

Download and run the Create Source Template Definitions plugin. That will create definitions for any templates that don't have them already. You can then delete any definitions that you no longer require.
Mark Draper

User avatar
Chrisv
Famous
Posts: 150
Joined: 18 Mar 2022 17:00
Family Historian: V7
Location: Savannah, GA, USA

Re: Deleted Custom Source Template

Post by Chrisv » 30 Apr 2022 10:37

Thanks so much, Mark! Worked perfectly!

User avatar
cwhermann
Famous
Posts: 155
Joined: 20 Mar 2021 22:04
Family Historian: V7
Location: New Hampshire, US

Re: Deleted Custom Source Template

Post by cwhermann » 30 Apr 2022 12:11

Mark1834 wrote:
30 Apr 2022 07:59
Download and run the Create Source Template Definitions plugin. That will create definitions for any templates that don't have them already. You can then delete any definitions that you no longer require.
I was concerned with the plugin overwriting definitions already in the file, but if I understand your description of how the plugin operates, then I should run the Create Source Template Definitions on a regular basis to make sure any customized templates created since the last run of the plugin are added to the definitions file.
If I have template in the project that shows as “mod” does the plugin create a “new” Template? And how does it handle the the naming of the modified template, or should I use the sync/compare button. I am still trying to get my head around the concept of definitions in and out of the project and want to make sure I understand correctly the difference between the plugin and the sync/compare.
Curtis Hermann
FH 7.0.15

User avatar
Mark1834
Megastar
Posts: 2146
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Deleted Custom Source Template

Post by Mark1834 » 30 Apr 2022 15:47

Curtis,

The key difference is that sync/compare acts on pairs of templates and definitions with the same name. The plugin creates a definition for templates with no definition. Therefore, it will not create modified definitions to match modified templates, providing that you do not change the name and collection.

If you are creating new or modifying existing templates, the better way is to create/modify the definition, not the template. That way, your definitions are always up to date, and changes can be cascaded down from definition to template by compare/sync.

It’s one of the more confusing features of FH7, but it helps to have the hierarchy in mind. Definition, Template, Source, in that order.
Mark Draper

Post Reply