I have several questions regarding the display of certificate, both on the web and on the mobile app.
For the displayHTML field, do we need to hardcode the layout of the certificate?
Can we make use of cert-viewer to design and embed the layout into the certificate? If yes, how to do that?
I looked at the sample issued certificates which come with embedded layouts, when I look at the JSON file, there isn’t any displayHTML field on it, I am curious how that is achieved.
Cert-tools has the concept of replacing certificate variables with values in the roaster file. So you may either create a certificate template that has displayHtml hardcoded to be the same for each person, or you can add displayHtml to one of the variables that gets replaced.
For the latter option, you’d need to create your own functionality that dynamically creates the displayHtml uniquely for each person and sticks that in the roaster file. Or fork cert-tools and create the code needed to replace displayHtml elements with roster specific information, such as name.
Easiest option would be to just create the html like you would normally and insert that as your template (or whatever custom tool you use to dynamically create html).
Hi guys, you mentioned this " you can add displayHtml to one of the variables that gets replaced." where and how do you replace that value? Would you mind to elaborate a bit more? Thank you.
Hello ,
I am facing issue to display dynamic value in certificate when we are using html inside roster file .
Lets take Example -
Values inside roaster file : Name , pubkey , address , contact number ,html
From this roster file i want to display values like Name and Contact Number in certificate which i designed in html .
How to display this values in certificate ?
The way I worked around this was to populate the values for Name, pubkey,address, contact first, then use those values to build the static html elements around the dynamic entries. I used php to build the csv files so I had more control.