Stream: IG creation
Topic: Template: Graphics in profile descriptions
Sarah Gaunt (Jan 16 2020 at 04:27):
@Lloyd McKenzie in the old template we were using we could have graphics in the description of a template and they would show up both on the profile page and the artifact page. In the new template, the graphic shows up on the profile page:
pasted image
But then it does this on the artifact page:
pasted image
I'm not sure what the preferred behaviour would be - could look pretty messy if there were a bunch of graphics on the artifacts page...
Is this something you can fix? Should I raise a Jira? I guess we need to leave graphics out of profile descriptions for now...
Jose Costa Teixeira (Jan 16 2020 at 04:33):
@Sarah Gaunt can I reproduce this? It may be due to a recent/pending change
Lloyd McKenzie (Jan 16 2020 at 04:40):
I wouldn't recommend putting graphics in the description. Instead, make use of the 'intro' or 'notes' capability of the template to define the more complex content. The description isn't really meant to be more than a sentence or two.
Lloyd McKenzie (Jan 16 2020 at 04:40):
If that's something Trifolia doesn't support yet, then we should probably get that addressed.
Sarah Gaunt (Jan 16 2020 at 04:47):
How does it work? Where in the template do you do this?
Sarah Gaunt (Jan 16 2020 at 04:49):
Never mind, found it in the sample ig
Sarah Gaunt (Jan 16 2020 at 05:13):
Where do the "notes" show up - I can see the "intro" material in the sample IG for the MyExtension, but I can't see the notes anywhere...
Sarah Gaunt (Jan 16 2020 at 05:22):
Found the notes for MyPatient - but for some reason there aren't notes showing up at the bottom of the extension in the sample IG...
Sarah Gaunt (Jan 16 2020 at 05:24):
@Jose Costa Teixeira - just change StructureDefinition.description of myObservation.xml in the sample IG to:
<description value="A profile showing the use of XML to author profiles. 
<center><table><tr><td><img src="anImage.png" style="width:100%"/></td></tr></table></center>"/>
That image already exists in input/images so that should work.
Jose Costa Teixeira (Jan 16 2020 at 06:15):
It works on my machine
Sarah Gaunt (Jan 16 2020 at 06:20):
You can see the graphic in the artifact list? Huh... Weird.
Jose Costa Teixeira (Jan 16 2020 at 06:32):
I may have tweaked the template. This is why I wanted to see your IG to see if it has the same change
Sarah Gaunt (Jan 16 2020 at 06:38):
Ah, understood!
Last updated: Apr 12 2022 at 19:14 UTC