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?
* Deleted Custom Source Template
- Mark1834
- Megastar
- Posts: 2147
- Joined: 27 Oct 2017 19:33
- Family Historian: V7
- Location: South Cheshire, UK
Re: Deleted Custom Source Template
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.
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
Re: Deleted Custom Source Template
Thanks so much, Mark! Worked perfectly!
- cwhermann
- Famous
- Posts: 155
- Joined: 20 Mar 2021 22:04
- Family Historian: V7
- Location: New Hampshire, US
Re: Deleted Custom Source Template
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.Mark1834 wrote: ↑30 Apr 2022 07:59Download 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.
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
FH 7.0.15
- Mark1834
- Megastar
- Posts: 2147
- Joined: 27 Oct 2017 19:33
- Family Historian: V7
- Location: South Cheshire, UK
Re: Deleted Custom Source Template
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.
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