Stream: IG creation
Topic: Alter template header
David Hay (Feb 27 2020 at 19:29):
Is it possible to locally alter the header of a template (eg fhir.base.template ) to, say, change the colour and add a new .gif - or is the approach to create a new template?
Lloyd McKenzie (Feb 27 2020 at 19:43):
In doing this, you're defining a new template, but it can be a new template that depends on another template that defines most of the behavior/appearance and just changes color scheme. (Take a look at the FHIR template for an example of this.) You can also define a template that is 'contained' within an IG and doesn't use the package infrastructure and isn't shared across IGs - take a look at the UTG IG for an example of this.
David Hay (Feb 27 2020 at 20:17):
For the 'contained' option (UTG) , is that the framework/ig-template folder? Where do I place it in the folder structure?
Lloyd McKenzie (Feb 27 2020 at 20:21):
Yes, and you leave it exactly where it is. If you don't wanted it nested under framework, you could move it elsewhere - just don't call it 'template'. (The 'template' folder is a working folder that gets re-created every time the publisher is run.)
David Hay (Feb 27 2020 at 20:31):
ta
David Hay (Feb 28 2020 at 01:36):
Do I have to tell the publisher that there is a framework folder (which is a peer with the input folder), or should it just find it?
I added framework/ig-template/includes/_append.fragment-header.html (where _append.fragment-header.html had some text in a div) expecting it to appear in the header, but it didn't...
Last updated: Apr 12 2022 at 19:14 UTC