...
Template for the certificate template:
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
...
Open Chrome
> Dev Tools
(F11)-> three dots
-> More tools
-> Rendering
-> emulate CSS media type
...
Set page size to whatever page you need to print:
...
Testing Print Layout
The preceding Dev Tools printing emulation should be viewed with caution. There are still many bugs with the tool as of this writing (Feb 2023). For example: print margins and positions are not accurately reflected when actually printing:
...
For this reason, any testing using this print emulation would be invalid. They should only be used for development.
Known Issues
Render Notification Template for Deleted Course
If a course gets deleted, the course name is not available anymore. Therefore, some notifications fail to get rendered because assembling the TVM dictionary entries fails. This is a known bug in GetAllTemplateParameters
.
This issue mainly happens for pre-expiry notifications IsCategory(Certificate,PreExpiry)
- see error below.
Error
Code Block |
---|
2024-10-27 17:00:10,343 [ERROR] {Email-NotificationChannel Thread} |NotificationManager.Impl.NotificationChannelEmail| *Core-Service-Lindblad* Service - Email-NotificationChannel: Unexpected exception for queue item Id = '9100852c-94bf-11ef-911f-ac1f6b46ac39'
System.NullReferenceException: Object reference not set to an instance of an object.
at MarineLMS.Model.Impl.CertificateNotification.GetAllTemplateParameters(TimeZoneInfo targetTimeZone)
at MarineLMS.NotificationManager.Impl.NotificationChannelEmail.AppendTemplateParametersFromTarget(ICoreUnitofWork uow, IChannelQueueItem item, String emailTo)
at MarineLMS.NotificationManager.Impl.NotificationChannelEmail.DeliverItem(ICoreUnitofWork uow, IChannelQueueItem item)
2024-10-27 17:00:10,359 [ERROR] {Email-NotificationChannel Thread} |NotificationManager.Impl.NotificationChannelEmail| *Core-Service-Lindblad* Service - Email-NotificationChannel: Unexpected exception for queue item Id = '9100852e-94bf-11ef-911f-ac1f6b46ac39'
System.NullReferenceException: Object reference not set to an instance of an object.
at MarineLMS.Model.Impl.CertificateNotification.GetAllTemplateParameters(TimeZoneInfo targetTimeZone)
at MarineLMS.NotificationManager.Impl.NotificationChannelEmail.AppendTemplateParametersFromTarget(ICoreUnitofWork uow, IChannelQueueItem item, String emailTo)
at MarineLMS.NotificationManager.Impl.NotificationChannelEmail.DeliverItem(ICoreUnitofWork uow, IChannelQueueItem item) |
Workaround
Ignore the error because the pre-expiry notification should not be sent.
Related Documents
Certificate Template Resource Structure using File Collections
Workflow to Release Certificate Template Files